mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Make a note that stopTrack needs to be called for a stopping track
This commit is contained in:
parent
9e7a49f66e
commit
9e45f6d05f
@ -107,7 +107,8 @@ namespace MWBase
|
|||||||
/// If the actor is not saying anything, returns 0.
|
/// If the actor is not saying anything, returns 0.
|
||||||
|
|
||||||
virtual SoundStream *playTrack(const MWSound::DecoderPtr& decoder, PlayType type) = 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;
|
virtual void stopTrack(SoundStream *stream) = 0;
|
||||||
///< Stop the given audio track from playing
|
///< Stop the given audio track from playing
|
||||||
|
@ -1083,7 +1083,6 @@ namespace MWSound
|
|||||||
if(!mOutput->isStreamPlaying(sound))
|
if(!mOutput->isStreamPlaying(sound))
|
||||||
{
|
{
|
||||||
mOutput->finishStream(sound);
|
mOutput->finishStream(sound);
|
||||||
mUnusedStreams.push_back(sound);
|
|
||||||
trkiter = mActiveTracks.erase(trkiter);
|
trkiter = mActiveTracks.erase(trkiter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user