aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-08-02 00:29:53 +0000
committerMax Horn2003-08-02 00:29:53 +0000
commit208a3925e90999e7bd28b53571e27e1b7a1a36cb (patch)
tree99cda60bbafe4a20b1d8d5affb03c059e9a33c94
parent81b122e04b5c0ab514d9c20482e06d51bc6e3bcf (diff)
downloadscummvm-rg350-208a3925e90999e7bd28b53571e27e1b7a1a36cb.tar.gz
scummvm-rg350-208a3925e90999e7bd28b53571e27e1b7a1a36cb.tar.bz2
scummvm-rg350-208a3925e90999e7bd28b53571e27e1b7a1a36cb.zip
disable debug output
svn-id: r9390
-rw-r--r--sound/mixer.cpp15
-rw-r--r--sound/rate.h1
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);