print out bits in debug message output for OSS and ALSA

git-svn-id: https://svn.musicpd.org/mpd/trunk@3104 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2005-03-19 14:30:07 +00:00
parent 7ecd93e73e
commit 9297ae7fce
3 changed files with 9 additions and 5 deletions

View File

@ -259,8 +259,9 @@ static int alsa_openDevice(AudioOutput * audioOutput)
audioOutput->open = 1;
DEBUG("alsa device \"%s\" will be playing %i channel audio at %i Hz\n",
ad->device, channels, sampleRate);
DEBUG("alsa device \"%s\" will be playing %i bit, %i channel audio at "
"%i Hz\n", ad->device, (int)audioFormat->bits,
channels, sampleRate);
return 0;

View File

@ -482,8 +482,9 @@ static int oss_openDevice(AudioOutput * audioOutput)
audioFormat->sampleRate = od->sampleRate;
audioFormat->bits = od->bits;
DEBUG("oss device \"%s\" will be playing %i channel audio at %i Hz\n",
od->device, od->channels, od->sampleRate);
DEBUG("oss device \"%s\" will be playing %i bit %i channel audio at "
"%i Hz\n", od->device, od->bits,
od->channels, od->sampleRate);
return ret;
}

View File

@ -92,7 +92,9 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
&(cb->audioFormat),data);
}
doReplayGain(replayGainInfo, data, datalen, &cb->audioFormat);
if(replayGainInfo) {
doReplayGain(replayGainInfo, data, datalen, &cb->audioFormat);
}
while(datalen) {
if(currentChunk != cb->end) {