Fix debug messages in AudioProperties classes.

This commit is contained in:
Tsuda Kageyu
2015-08-10 12:00:23 +09:00
parent ba2167ef92
commit 30551864fa
11 changed files with 38 additions and 38 deletions

View File

@ -167,10 +167,10 @@ void Opus::AudioProperties::read(File *file)
}
}
else {
debug("Opus::Properties::read() -- The PCM values for the start or "
debug("Opus::AudioProperties::read() -- The PCM values for the start or "
"end of this file was incorrect.");
}
}
else
debug("Opus::Properties::read() -- Could not find valid first and last Ogg pages.");
debug("Opus::AudioProperties::read() -- Could not find valid first and last Ogg pages.");
}

View File

@ -126,7 +126,7 @@ void Speex::AudioProperties::read(File *file)
const ByteVector data = file->packet(0);
if(data.size() < 64) {
debug("Speex::Properties::read() -- data is too short.");
debug("Speex::AudioProperties::read() -- data is too short.");
return;
}
@ -186,12 +186,12 @@ void Speex::AudioProperties::read(File *file)
}
}
else {
debug("Speex::Properties::read() -- Either the PCM values for the start or "
debug("Speex::AudioProperties::read() -- Either the PCM values for the start or "
"end of this file was incorrect or the sample rate is zero.");
}
}
else
debug("Speex::Properties::read() -- Could not find valid first and last Ogg pages.");
debug("Speex::AudioProperties::read() -- Could not find valid first and last Ogg pages.");
// Alternative to the actual average bitrate.

View File

@ -149,14 +149,14 @@ void Ogg::Vorbis::AudioProperties::read(File *file)
const ByteVector data = file->packet(0);
if(data.size() < 28) {
debug("Vorbis::Properties::read() -- data is too short.");
debug("Ogg::Vorbis::AudioProperties::read() -- data is too short.");
return;
}
size_t pos = 0;
if(data.mid(pos, 7) != vorbisSetupHeaderID) {
debug("Ogg::Vorbis::Properties::read() -- invalid Ogg::Vorbis identification header");
debug("Ogg::Vorbis::AudioProperties::read() -- invalid Ogg::Vorbis identification header");
return;
}
@ -201,12 +201,12 @@ void Ogg::Vorbis::AudioProperties::read(File *file)
}
}
else {
debug("Vorbis::Properties::read() -- Either the PCM values for the start or "
debug("Ogg::Vorbis::AudioProperties::read() -- Either the PCM values for the start or "
"end of this file was incorrect or the sample rate is zero.");
}
}
else
debug("Vorbis::Properties::read() -- Could not find valid first and last Ogg pages.");
debug("Ogg::Vorbis::AudioProperties::read() -- Could not find valid first and last Ogg pages.");
// Alternative to the actual average bitrate.