Showing the changes to libraries/script-engine/src/AudioScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -45,7 +45,7 @@ ScriptAudioInjector* AudioScriptingInterface::playSound(SharedSoundPointer sound · 44 unmodified lines | |||
| 45 | // stereo option isn't set from script, this comes from sound metadata or filename | 45 | // stereo option isn't set from script, this comes from sound metadata or filename |
| 46 | AudioInjectorOptions optionsCopy = injectorOptions; | 46 | AudioInjectorOptions optionsCopy = injectorOptions; |
| 47 | optionsCopy.stereo = sound->isStereo(); | 47 | optionsCopy.stereo = sound->isStereo(); |
| 48 | auto injector = AudioInjector::playSound(sound->getByteArray(), optionsCopy, _localAudioInterface); | 48 | auto injector = AudioInjector::playSound(sound->getByteArray(), optionsCopy); |
| 49 | if (!injector) { | 49 | if (!injector) { |
| 50 | return NULL; | 50 | return NULL; |
| 51 | } | 51 | } |