From 208a3925e90999e7bd28b53571e27e1b7a1a36cb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 2 Aug 2003 00:29:53 +0000 Subject: disable debug output svn-id: r9390 --- sound/mixer.cpp | 15 +++++++-------- sound/rate.h | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 6cb4823f2c..4a4c8634b2 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -674,10 +674,9 @@ ChannelRaw::ChannelRaw(SoundMixer *mixer, PlayingSoundHandle *handle, void *soun // Get a rate converter instance _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo()); - printf(" data has %d bits and is %s\n", - ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), - ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); - +// printf(" data has %d bits and is %s\n", +// ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), +// ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); #else _pos = 0; _fpPos = 0; @@ -768,9 +767,9 @@ ChannelStream::ChannelStream(SoundMixer *mixer, PlayingSoundHandle *handle, void // Get a rate converter instance _converter = makeRateConverter(rate, mixer->getOutputRate(), _input->isStereo()); - printf(" data has %d bits and is %s\n", - ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), - ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); +// printf(" data has %d bits and is %s\n", +// ((flags & SoundMixer::FLAG_16BITS) ? 16 : 8), +// ((flags & SoundMixer::FLAG_UNSIGNED) ? "unsigned" : "signed")); #else _flags = flags; _bufferSize = buffer_size; @@ -1002,7 +1001,7 @@ ChannelMP3CDMusic::ChannelMP3CDMusic(SoundMixer *mixer, PlayingSoundHandle *hand _input = new MP3InputStream(file, duration); // Get a rate converter instance -printf("ChannelMP3CDMusic: inrate %d, outrate %d, stereo %d\n", _input->getRate(), mixer->getOutputRate(), _input->isStereo()); +//printf("ChannelMP3CDMusic: inrate %d, outrate %d, stereo %d\n", _input->getRate(), mixer->getOutputRate(), _input->isStereo()); _converter = makeRateConverter(_input->getRate(), mixer->getOutputRate(), _input->isStereo()); } #else diff --git a/sound/rate.h b/sound/rate.h index 7a84526e2b..9a33e4ee2a 100644 --- a/sound/rate.h +++ b/sound/rate.h @@ -94,7 +94,6 @@ public: }; static inline RateConverter *makeRateConverter(st_rate_t inrate, st_rate_t outrate, bool stereo) { -printf("makeRateConverter: inrate %d, outrate %d, %s\n", inrate, outrate, (stereo ? "stereo" : "mono")); if (inrate != outrate) { return new LinearRateConverter(inrate, outrate); //return new ResampleRateConverter(inrate, outrate, 1); -- cgit v1.2.3