Fix to cause the onStop event to properly fire when audio sources hit the end of their stream.
This commit is contained in:
parent
61a7a942c8
commit
1e334ead1a
|
@ -252,6 +252,8 @@ namespace cAudio
|
|||
{
|
||||
//Resets the audio to the beginning
|
||||
Decoder->setPosition(0, false);
|
||||
getLogger()->logDebug("Audio Source", "Source stopped.");
|
||||
signalEvent(ON_STOP);
|
||||
oldState = state;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue