diff options
author | Joerg Mueller <nexyon@gmail.com> | 2013-08-15 01:21:00 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2013-08-15 01:21:00 +0400 |
commit | c8f75fb5b1918a13a722ed39bb8cace1ee5b58b8 (patch) | |
tree | b2439e74b81c952801ef4c5615562d106792def1 /intern/audaspace/Python/AUD_PyAPI.cpp | |
parent | 9e42f76bab4a5ee766e4fe09bd9c9b3579e3da8d (diff) |
Adding a new state for sound handles in audaspace: stopped.
Now sounds that stopped playing but are still kept in the device can be differentiated from paused sounds with this state.
This should also fix the performance issues mentioned in [#36466] End of SequencerEntrys not set correctly.
Please test if sound pausing, resuming and stopping works fine in the BGE and sequencer, my tests all worked fine, but there might be a use case that needs some fixing.
Diffstat (limited to 'intern/audaspace/Python/AUD_PyAPI.cpp')
-rw-r--r-- | intern/audaspace/Python/AUD_PyAPI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index 9beba2eb0a0..b00289b3fae 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -2908,6 +2908,7 @@ PyInit_aud(void) PY_MODULE_ADD_CONSTANT(m, AUD_STATUS_INVALID); PY_MODULE_ADD_CONSTANT(m, AUD_STATUS_PAUSED); PY_MODULE_ADD_CONSTANT(m, AUD_STATUS_PLAYING); + PY_MODULE_ADD_CONSTANT(m, AUD_STATUS_STOPPED); // distance model constants PY_MODULE_ADD_CONSTANT(m, AUD_DISTANCE_MODEL_EXPONENT); PY_MODULE_ADD_CONSTANT(m, AUD_DISTANCE_MODEL_EXPONENT_CLAMPED); |