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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user