Skip to content

Commit

Permalink
Specific unit test for #282
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Oct 2, 2024
1 parent e40a223 commit 03c34bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ATL.unit-test/IO/AudioData/AudioData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public void Audio_MP3()
testGenericAudio("MP3/truncated_frame.mp3", 498, 320, -1, 48000, false, CF_LOSSY, STEREO, "MPEG Audio (Layer III)", 954, 19908);
// Fake header + garbage before actual header
testGenericAudio("MP3/garbage_before_header.mp3", 6142, 64, -1, 24000, false, CF_LOSSY, JOINT_STEREO, "MPEG Audio (Layer III)", 141, 49139);
// Ghost data after the last frame
testGenericAudio("MP3/ghost_data_after_last_frame.mp3", 1258, 112, -1, 44100, false, CF_LOSSY, MONO, "MPEG Audio (Layer III)", 0, 17607);
// Contradictory frames
testGenericAudio("MP3/different_bitrates_modes.mp3", 6439, 128, -1, 44100, false, CF_LOSSY, JOINT_STEREO, "MPEG Audio (Layer III)", 45, 103025);

Expand All @@ -125,6 +127,8 @@ public void Audio_MP3()
testGenericAudio("MP3/truncated_frame.mp3", 498, 320, -1, 48000, false, CF_LOSSY, STEREO, "MPEG Audio (Layer III)", 954, 19908);
// Fake header + garbage before actual header
testGenericAudio("MP3/garbage_before_header.mp3", 6142, 64, -1, 24000, false, CF_LOSSY, JOINT_STEREO, "MPEG Audio (Layer III)", 141, 49139);
// Ghost data after the last frame
testGenericAudio("MP3/ghost_data_after_last_frame.mp3", 209, 112, -1, 44100, false, CF_LOSSY, MONO, "MPEG Audio (Layer III)", 0, 2929);
// Contradictory frames
testGenericAudio("MP3/different_bitrates_modes.mp3", 6439, 128, -1, 44100, false, CF_LOSSY, JOINT_STEREO, "MPEG Audio (Layer III)", 45, 103025);
}
Expand Down
Binary file not shown.

0 comments on commit 03c34bb

Please sign in to comment.