diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-08-03 12:45:03 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-08-03 12:45:03 +0400 |
commit | 279030a232d1fb6c09937bbcb5ffc0bbb953dbcb (patch) | |
tree | 0ebea07206f5594c7a10e424a84681e979267a2c /intern/audaspace/OpenAL | |
parent | 16782bb6c2ed5594cab4f70674c791fdaaa2dcdb (diff) |
Audaspace:
* Py API: Renamed Sound to Factory to match the C++ classes and make it possible to add Readers when necessary to the API.
* Py API docs: Added the filter example.
* Fixed a crash for sounds without stop callback.
Diffstat (limited to 'intern/audaspace/OpenAL')
-rw-r--r-- | intern/audaspace/OpenAL/AUD_OpenALDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp index 3af13ec643f..aa7cfcfd880 100644 --- a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp +++ b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp @@ -545,6 +545,8 @@ AUD_Handle* AUD_OpenALDevice::play(AUD_IFactory* factory, bool keep) sound->isBuffered = true; sound->data_end = true; sound->loopcount = 0; + sound->stop = NULL; + sound->stop_data = NULL; alcSuspendContext(m_context); @@ -614,6 +616,8 @@ AUD_Handle* AUD_OpenALDevice::play(AUD_IFactory* factory, bool keep) sound->isBuffered = false; sound->data_end = false; sound->loopcount = 0; + sound->stop = NULL; + sound->stop_data = NULL; valid &= getFormat(sound->format, specs.specs); |