mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-17 16:31:27 -04:00
chore(pcmaudio): change WARN -> VERBOSE for issues that can be handled
This commit is contained in:
parent
f8aed78f1c
commit
58c7d69c3b
@ -584,9 +584,10 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_aiff(
|
|||||||
file_header.size = folly::Endian::big(file_header.size);
|
file_header.size = folly::Endian::big(file_header.size);
|
||||||
|
|
||||||
if (file_header.size != data.size() - offsetof(file_hdr_t, form)) {
|
if (file_header.size != data.size() - offsetof(file_hdr_t, form)) {
|
||||||
LOG_WARN << "[AIFF] " << path
|
LOG_VERBOSE << "[AIFF] " << path
|
||||||
<< ": unexpected file size: " << file_header.size << " (expected "
|
<< ": unexpected file size: " << file_header.size
|
||||||
<< data.size() - offsetof(file_hdr_t, form) << ")";
|
<< " (expected " << data.size() - offsetof(file_hdr_t, form)
|
||||||
|
<< ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool meta_valid{false};
|
bool meta_valid{false};
|
||||||
@ -896,9 +897,9 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_wav_like(
|
|||||||
(FormatPolicy::size_includes_header ? 0 : offsetof(file_hdr_t, form));
|
(FormatPolicy::size_includes_header ? 0 : offsetof(file_hdr_t, form));
|
||||||
|
|
||||||
if (file_header.size != expected_size) {
|
if (file_header.size != expected_size) {
|
||||||
LOG_WARN << "[" << FormatPolicy::format_name << "] " << path
|
LOG_VERBOSE << "[" << FormatPolicy::format_name << "] " << path
|
||||||
<< ": unexpected file size: " << file_header.size << " (expected "
|
<< ": unexpected file size: " << file_header.size
|
||||||
<< expected_size << ")";
|
<< " (expected " << expected_size << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool meta_valid{false};
|
bool meta_valid{false};
|
||||||
@ -1011,11 +1012,11 @@ bool pcmaudio_categorizer_<LoggerPolicy>::handle_pcm_data(
|
|||||||
if (auto pcm_padding =
|
if (auto pcm_padding =
|
||||||
pcm_length % (meta.number_of_channels * meta.bytes_per_sample);
|
pcm_length % (meta.number_of_channels * meta.bytes_per_sample);
|
||||||
pcm_padding > 0) {
|
pcm_padding > 0) {
|
||||||
LOG_WARN << "[" << context << "] " << path
|
LOG_VERBOSE << "[" << context << "] " << path
|
||||||
<< ": `data` chunk size mismatch (pcm_len=" << pcm_length
|
<< ": `data` chunk size mismatch (pcm_len=" << pcm_length
|
||||||
<< ", #chan=" << meta.number_of_channels
|
<< ", #chan=" << meta.number_of_channels
|
||||||
<< ", bytes_per_sample=" << static_cast<int>(meta.bytes_per_sample)
|
<< ", bytes_per_sample="
|
||||||
<< ")";
|
<< static_cast<int>(meta.bytes_per_sample) << ")";
|
||||||
|
|
||||||
// work around broken Logic Pro files...
|
// work around broken Logic Pro files...
|
||||||
pcm_length -= pcm_padding;
|
pcm_length -= pcm_padding;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user