Skip to content

Commit

Permalink
WAV : RF64 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Mar 19, 2023
1 parent b0d0de2 commit 0bf8c14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ATL.test/IO/AudioData/AudioData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public void Audio_WAV()
{
testGenericAudio("WAV/wav.wav", 7646, 1411, 16, 44100, false, CF_LOSSLESS, STEREO, "PCM (uncompressed audio) (Windows PCM)", 44, 1348720);
testGenericAudio("WAV/rifx.wav", 150, 2117, 24, 44100, false, CF_LOSSLESS, STEREO, "PCM (uncompressed audio) (Unknown)", 80, 39690);
testGenericAudio("WAV/cortissimo.wav", 187, 6144, 32, 96000, false, CF_LOSSLESS, STEREO, "PCM (uncompressed audio) (Unknown)", 80, 143544);
}

[TestMethod]
Expand Down
Binary file added ATL.test/Resources/WAV/cortissimo.wav
Binary file not shown.
2 changes: 1 addition & 1 deletion ATL/AudioData/IO/WAV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public WAV(string filePath, Format format)

public static bool IsValidHeader(byte[] data)
{
return StreamUtils.ArrBeginsWith(data, HEADER_RIFF) || StreamUtils.ArrBeginsWith(data, HEADER_RIFX);
return StreamUtils.ArrBeginsWith(data, HEADER_RIFF) || StreamUtils.ArrBeginsWith(data, HEADER_RIFX) || StreamUtils.ArrBeginsWith(data, HEADER_RF64);
}

private bool readWAV(Stream source, ReadTagParams readTagParams)
Expand Down

0 comments on commit 0bf8c14

Please sign in to comment.