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

experimental
Chris Robinson 7 years ago
parent 9e7a49f66e
commit 9e45f6d05f

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

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

Loading…
Cancel
Save