| 213 | // -------------------------------------------------------------------------------------------------------------------- |
| 214 | |
| 215 | IPLerror CContext::createReflectionEffect(IPLAudioSettings* audioSettings, |
| 216 | IPLReflectionEffectSettings* effectSettings, |
| 217 | IReflectionEffect** effect) |
| 218 | { |
| 219 | if (!audioSettings || !effectSettings || !effect) |
| 220 | return IPL_STATUS_FAILURE; |
| 221 | |
| 222 | if (audioSettings->samplingRate <= 0 || audioSettings->frameSize <= 0) |
| 223 | return IPL_STATUS_FAILURE; |
| 224 | |
| 225 | try |
| 226 | { |
| 227 | auto _effect = reinterpret_cast<CReflectionEffect*>(gMemory().allocate(sizeof(CReflectionEffect), Memory::kDefaultAlignment)); |
| 228 | new (_effect) CReflectionEffect(this, audioSettings, effectSettings); |
| 229 | *effect = _effect; |
| 230 | } |
| 231 | catch (Exception e) |
| 232 | { |
| 233 | return static_cast<IPLerror>(e.status()); |
| 234 | } |
| 235 | |
| 236 | return IPL_STATUS_SUCCESS; |
| 237 | } |
| 238 | |
| 239 | IPLerror CContext::createReflectionMixer(IPLAudioSettings* audioSettings, |
| 240 | IPLReflectionEffectSettings* effectSettings, |
no test coverage detected