aboutsummaryrefslogtreecommitdiff
path: root/sound/mp3.cpp
diff options
context:
space:
mode:
authorMax Horn2007-02-24 23:19:53 +0000
committerMax Horn2007-02-24 23:19:53 +0000
commit65b30d84a805a7b22322474970a219d5628997d5 (patch)
tree71a3b15d15d59eb4802982ad7dc3a549b1bf2070 /sound/mp3.cpp
parentd6467f79a29cf053370d20960697c9a60f71f81e (diff)
downloadscummvm-rg350-65b30d84a805a7b22322474970a219d5628997d5.tar.gz
scummvm-rg350-65b30d84a805a7b22322474970a219d5628997d5.tar.bz2
scummvm-rg350-65b30d84a805a7b22322474970a219d5628997d5.zip
Added numLoops parameter to DigitalTrackInfo::play
svn-id: r25836
Diffstat (limited to 'sound/mp3.cpp')
-rw-r--r--sound/mp3.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp
index e98134adc7..ff8787833b 100644
--- a/sound/mp3.cpp
+++ b/sound/mp3.cpp
@@ -346,7 +346,7 @@ private:
public:
MP3TrackInfo(const char *filename);
bool error() { return _errorFlag; }
- void play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int startFrame, int duration);
+ void play(Mixer *mixer, SoundHandle *handle, int numLoops, int startFrame, int duration);
};
MP3TrackInfo::MP3TrackInfo(const char *filename) :
@@ -371,7 +371,7 @@ MP3TrackInfo::MP3TrackInfo(const char *filename) :
delete tempStream;
}
-void MP3TrackInfo::play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int startFrame, int duration) {
+void MP3TrackInfo::play(Mixer *mixer, SoundHandle *handle, int numLoops, int startFrame, int duration) {
assert(!_errorFlag);
mad_timer_t start;
@@ -396,7 +396,7 @@ void MP3TrackInfo::play(Audio::Mixer *mixer, Audio::SoundHandle *handle, int sta
}
// ... create an AudioStream ...
- MP3InputStream *input = new MP3InputStream(file, true, start, end);
+ MP3InputStream *input = new MP3InputStream(file, true, start, end, numLoops);
// ... and play it
mixer->playInputStream(Audio::Mixer::kMusicSoundType, handle, input);