From e38b7b3cc53fe02312fcaee5e95c37dfa1c65c92 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 5 Jan 2010 22:02:04 +0000 Subject: Properly initialize _pos in LoopingChannel. svn-id: r47055 --- sound/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 31c5f60593..c6fc5169df 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -647,7 +647,7 @@ LoopingChannel::LoopingChannel(Mixer *mixer, Mixer::SoundType type, SeekableAudi Timestamp loopStart, Timestamp loopEnd, bool autofreeStream, bool reverseStereo, int id, bool permanent) : Channel(mixer, type, id, permanent), _loopCount(loopCount), _loopStart(loopStart), _loopEnd(loopEnd), - _autofreeStream(autofreeStream), _converter(0), _input(input), _pos(0, mixer->getOutputRate()) { + _autofreeStream(autofreeStream), _converter(0), _input(input), _pos(loopStart) { _input->seek(loopStart); // Get a rate converter instance _converter = makeRateConverter(_input->getRate(), mixer->getOutputRate(), _input->isStereo(), reverseStereo); -- cgit v1.2.3