mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
SOUND: Convert some (f)printf + fflush to debug
svn-id: r54022
This commit is contained in:
parent
3d5e2fa820
commit
ebb7ed2b8a
@ -90,15 +90,15 @@ bool loadWAVFromStream(Common::SeekableReadStream &stream, int &size, int &rate,
|
|||||||
if (blockAlign_ != 0)
|
if (blockAlign_ != 0)
|
||||||
*blockAlign_ = blockAlign;
|
*blockAlign_ = blockAlign;
|
||||||
#if 0
|
#if 0
|
||||||
printf("WAVE information:\n");
|
debug("WAVE information:");
|
||||||
printf(" total size: %d\n", wavLength);
|
debug(" total size: %d", wavLength);
|
||||||
printf(" fmt size: %d\n", fmtLength);
|
debug(" fmt size: %d", fmtLength);
|
||||||
printf(" type: %d\n", type);
|
debug(" type: %d", type);
|
||||||
printf(" numChannels: %d\n", numChannels);
|
debug(" numChannels: %d", numChannels);
|
||||||
printf(" samplesPerSec: %d\n", samplesPerSec);
|
debug(" samplesPerSec: %d", samplesPerSec);
|
||||||
printf(" avgBytesPerSec: %d\n", avgBytesPerSec);
|
debug(" avgBytesPerSec: %d", avgBytesPerSec);
|
||||||
printf(" blockAlign: %d\n", blockAlign);
|
debug(" blockAlign: %d", blockAlign);
|
||||||
printf(" bitsPerSample: %d\n", bitsPerSample);
|
debug(" bitsPerSample: %d", bitsPerSample);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (type != 1 && type != 2 && type != 17) {
|
if (type != 1 && type != 2 && type != 17) {
|
||||||
@ -152,7 +152,7 @@ bool loadWAVFromStream(Common::SeekableReadStream &stream, int &size, int &rate,
|
|||||||
offset = stream.readUint32LE();
|
offset = stream.readUint32LE();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
printf(" found a '%s' tag of size %d\n", buf, offset);
|
debug(" found a '%s' tag of size %d", buf, offset);
|
||||||
#endif
|
#endif
|
||||||
} while (memcmp(buf, "data", 4) != 0);
|
} while (memcmp(buf, "data", 4) != 0);
|
||||||
|
|
||||||
|
@ -168,18 +168,16 @@ extern "C" int SimpleRate_readFudge(Audio::AudioStream &input,
|
|||||||
int16 *a, int b)
|
int16 *a, int b)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_RATECONV
|
#ifdef DEBUG_RATECONV
|
||||||
fprintf(stderr, "Reading ptr=%x n%d\n", a, b);
|
debug("Reading ptr=%x n%d", a, b);
|
||||||
fflush(stderr);
|
|
||||||
#endif
|
#endif
|
||||||
return input.readBuffer(a, b);
|
return input.readBuffer(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<bool stereo, bool reverseStereo>
|
template<bool stereo, bool reverseStereo>
|
||||||
int SimpleRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
|
int SimpleRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
|
||||||
|
|
||||||
#ifdef DEBUG_RATECONV
|
#ifdef DEBUG_RATECONV
|
||||||
fprintf(stderr, "Simple st=%d rev=%d\n", stereo, reverseStereo);
|
debug("Simple st=%d rev=%d", stereo, reverseStereo);
|
||||||
fflush(stderr);
|
|
||||||
#endif
|
#endif
|
||||||
st_sample_t *ostart = obuf;
|
st_sample_t *ostart = obuf;
|
||||||
|
|
||||||
@ -318,8 +316,7 @@ template<bool stereo, bool reverseStereo>
|
|||||||
int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
|
int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r) {
|
||||||
|
|
||||||
#ifdef DEBUG_RATECONV
|
#ifdef DEBUG_RATECONV
|
||||||
fprintf(stderr, "Linear st=%d rev=%d\n", stereo, reverseStereo);
|
debug("Linear st=%d rev=%d", stereo, reverseStereo);
|
||||||
fflush(stderr);
|
|
||||||
#endif
|
#endif
|
||||||
st_sample_t *ostart = obuf;
|
st_sample_t *ostart = obuf;
|
||||||
|
|
||||||
@ -393,8 +390,7 @@ public:
|
|||||||
assert(input.isStereo() == stereo);
|
assert(input.isStereo() == stereo);
|
||||||
|
|
||||||
#ifdef DEBUG_RATECONV
|
#ifdef DEBUG_RATECONV
|
||||||
fprintf(stderr, "Copy st=%d rev=%d\n", stereo, reverseStereo);
|
debug("Copy st=%d rev=%d", stereo, reverseStereo);
|
||||||
fflush(stderr);
|
|
||||||
#endif
|
#endif
|
||||||
st_size_t len;
|
st_size_t len;
|
||||||
st_sample_t *ostart = obuf;
|
st_sample_t *ostart = obuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user