forked from teamnwah/openmw-tes3coop
Make a note that stopTrack needs to be called for a stopping track
This commit is contained in:
parent
9e7a49f66e
commit
9e45f6d05f
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue