| 32 | // -------------------------------------------------------------------------------------------------------------------- |
| 33 | |
| 34 | CPanningEffect::CPanningEffect(CContext* context, |
| 35 | IPLAudioSettings* audioSettings, |
| 36 | IPLPanningEffectSettings* effectSettings) |
| 37 | { |
| 38 | auto _context = context->mHandle.get(); |
| 39 | if (!_context) |
| 40 | throw Exception(Status::Failure); |
| 41 | |
| 42 | auto _speakerLayout = SpeakerLayout(static_cast<SpeakerLayoutType>(effectSettings->speakerLayout.type), |
| 43 | effectSettings->speakerLayout.numSpeakers, |
| 44 | reinterpret_cast<Vector3f*>(effectSettings->speakerLayout.speakers)); |
| 45 | |
| 46 | PanningEffectSettings _effectSettings{}; |
| 47 | _effectSettings.speakerLayout = &_speakerLayout; |
| 48 | |
| 49 | new (&mHandle) Handle<PanningEffect>(ipl::make_shared<PanningEffect>(_effectSettings), _context); |
| 50 | } |
| 51 | |
| 52 | IPanningEffect* CPanningEffect::retain() |
| 53 | { |
nothing calls this directly
no test coverage detected