diff options
author | Jörg Müller <nexyon@gmail.com> | 2015-08-02 12:26:20 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2015-08-02 12:27:02 +0300 |
commit | 4cf92c48311086df2b68583cc50f4980d39ab448 (patch) | |
tree | ef0461e58b1d6b24aa631e068c46fb3b7539b6b0 /source/gameengine/Ketsji | |
parent | 559e1434d847681a4e72144489b68fee650ab9a8 (diff) |
Aduaspace: fixing playback in the game engine.
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_SoundActuator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp index 14f0598d088..02b1071e267 100644 --- a/source/gameengine/Ketsji/KX_SoundActuator.cpp +++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp @@ -122,7 +122,9 @@ void KX_SoundActuator::play() break; } - //m_handle = AUD_Device_play(BKE_sound_get_device(), sound, false); + AUD_Device* device = AUD_Device_getCurrent(); + m_handle = AUD_Device_play(device, sound, false); + AUD_Device_free(device); // in case of pingpong, we have to free the sound if(sound != m_sound) |