Showing the changes to libraries/script-engine/src/AudioScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -38,10 +38,10 @@ void AudioScriptingInterface::setLocalAudioInterface(AbstractAudioInterface* aud · 37 unmodified lines | |||
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | ScriptAudioInjector* AudioScriptingInterface::playSystemSound(SharedSoundPointer sound, const QVector3D& position) { | 41 | ScriptAudioInjector* AudioScriptingInterface::playSystemSound(SharedSoundPointer sound) { |
| 42 | AudioInjectorOptions options; | 42 | AudioInjectorOptions options; |
| 43 | options.position = glm::vec3(position.x(), position.y(), position.z()); | ||
| 44 | options.localOnly = true; | 43 | options.localOnly = true; |
| 44 | options.positionSet = false; // system sound | ||
| 45 | return playSound(sound, options); | 45 | return playSound(sound, options); |
| 46 | } | 46 | } |
| 47 | 47 | ||