Fix to cause the onStop event to properly fire when audio sources hit the end of their stream.

This commit is contained in:
Joshua Jones 2010-02-21 21:38:05 +00:00
parent 61a7a942c8
commit 1e334ead1a
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}