mirror of
https://github.com/alexkay/spek.git
synced 2025-04-15 08:10:33 +03:00
tests: WMA demuxing/decoding
This commit is contained in:
parent
ae8cd33b8e
commit
efef66c892
@ -137,7 +137,9 @@ std::unique_ptr<AudioFile> Audio::open(const std::string& file_name)
|
||||
bits_per_sample = codec_context->bits_per_coded_sample;
|
||||
}
|
||||
if (codec_context->codec_id == AV_CODEC_ID_AAC ||
|
||||
codec_context->codec_id == AV_CODEC_ID_MUSEPACK8) {
|
||||
codec_context->codec_id == AV_CODEC_ID_MUSEPACK8 ||
|
||||
codec_context->codec_id == AV_CODEC_ID_WMAV1 ||
|
||||
codec_context->codec_id == AV_CODEC_ID_WMAV2) {
|
||||
// These decoders set both bps and bitrate.
|
||||
bits_per_sample = 0;
|
||||
}
|
||||
|
BIN
tests/samples/2ch-44100Hz-v1.wma
Normal file
BIN
tests/samples/2ch-44100Hz-v1.wma
Normal file
Binary file not shown.
BIN
tests/samples/2ch-44100Hz-v2.wma
Normal file
BIN
tests/samples/2ch-44100Hz-v2.wma
Normal file
Binary file not shown.
@ -115,6 +115,10 @@ void test_audio()
|
||||
{AudioError::OK, "ATSC A/52", 192000, 44100, 0, 2, AC3_T, 9 * 1024}},
|
||||
{"2ch-44100Hz-std.mpc",
|
||||
{AudioError::OK, "Musepack", 0, 44100, 0, 2, 0.0, 11 * 1024 + 256}},
|
||||
{"2ch-44100Hz-v1.wma",
|
||||
{AudioError::OK, "Windows Media Audio 1", 128000, 44100, 0, 2, 0.138, 12 * 1024}},
|
||||
{"2ch-44100Hz-v2.wma",
|
||||
{AudioError::OK, "Windows Media Audio 2", 128000, 44100, 0, 2, 0.138, 12 * 1024}},
|
||||
};
|
||||
|
||||
Audio audio;
|
||||
|
Loading…
x
Reference in New Issue
Block a user