Make a note that stopTrack needs to be called for a stopping track

This commit is contained in:
Chris Robinson 2017-09-12 01:02:08 -07:00
parent 9e7a49f66e
commit 9e45f6d05f
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,8 @@ namespace MWBase
/// If the actor is not saying anything, returns 0.
virtual SoundStream *playTrack(const MWSound::DecoderPtr& decoder, PlayType type) = 0;
///< Play a 2D audio track, using a custom decoder
///< Play a 2D audio track, using a custom decoder. The caller is expected to call
/// stopTrack with the returned handle when done.
virtual void stopTrack(SoundStream *stream) = 0;
///< Stop the given audio track from playing

View file

@ -1083,7 +1083,6 @@ namespace MWSound
if(!mOutput->isStreamPlaying(sound))
{
mOutput->finishStream(sound);
mUnusedStreams.push_back(sound);
trkiter = mActiveTracks.erase(trkiter);
}
else