diff options
| author | Max Horn | 2003-08-02 16:11:12 +0000 |
|---|---|---|
| committer | Max Horn | 2003-08-02 16:11:12 +0000 |
| commit | e3b64fa7578896d23db09d6d6ed952aaf70467ed (patch) | |
| tree | 1ec03dc37bd719b5045ebe3cd079ad2a55458386 /sound/mixer.cpp | |
| parent | 1bd9026d8ab0bf7fca1b81d8d15e22068f6cc0d3 (diff) | |
| download | scummvm-rg350-e3b64fa7578896d23db09d6d6ed952aaf70467ed.tar.gz scummvm-rg350-e3b64fa7578896d23db09d6d6ed952aaf70467ed.tar.bz2 scummvm-rg350-e3b64fa7578896d23db09d6d6ed952aaf70467ed.zip | |
added FLAG_REVERSE_STEREO support
svn-id: r9416
Diffstat (limited to 'sound/mixer.cpp')
| -rw-r--r-- | sound/mixer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index c8d0d5abe6..69d4e0d5af 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -654,9 +654,8 @@ ChannelRaw::ChannelRaw(SoundMixer *mixer, PlayingSoundHandle *handle, void *soun _id = id; _ptr = (byte *)sound; _flags = flags; - -#ifdef SOX_HACK +#ifdef SOX_HACK // Create the input stream if (flags & SoundMixer::FLAG_LOOP) { if (loopEnd == 0) { @@ -671,8 +670,9 @@ ChannelRaw::ChannelRaw(SoundMixer *mixer, PlayingSoundHandle *handle, void *soun // TODO: add support for SoundMixer::FLAG_REVERSE_STEREO // Get a rate converter instance - _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo()); -// printf(" data has %d bits and is %s\n", + _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo(), (flags & SoundMixer::FLAG_REVERSE_STEREO) != 0); +// printf("inrate %d, outrate %d, %d bits, %s\n", +// rate, mixer->getOutputRate(), // ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), // ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); #else @@ -760,7 +760,7 @@ ChannelStream::ChannelStream(SoundMixer *mixer, PlayingSoundHandle *handle, void // TODO: add support for SoundMixer::FLAG_REVERSE_STEREO // Get a rate converter instance - _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo()); + _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo(), (flags & SoundMixer::FLAG_REVERSE_STEREO) != 0); // printf(" data has %d bits and is %s\n", // ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), // ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); |
