From 3c0befa0703c235ae0fe6bdda9b616f346a99dd4 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Tue, 14 Sep 2021 20:16:15 +0200 Subject: [PATCH] Add test WAVE files --- .gitattributes | 6 ++++++ .github/workflows/ci.yml | 2 ++ rhubarb/tests/resources/README.adoc | 4 ++++ rhubarb/tests/resources/sine-triangle-flac-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-float32-audacity.wav | 3 +++ rhubarb/tests/resources/sine-triangle-float32-audition.wav | 3 +++ rhubarb/tests/resources/sine-triangle-float32-ffmpeg.wav | 3 +++ .../tests/resources/sine-triangle-float32-soundforge.wav | 3 +++ rhubarb/tests/resources/sine-triangle-float64-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int16-audacity.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int16-audition.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int16-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int16-soundforge.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int24-audacity.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int24-audition.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int24-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int24-soundforge.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int32-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-int32-soundforge.wav | 3 +++ rhubarb/tests/resources/sine-triangle-uint8-audition.wav | 3 +++ rhubarb/tests/resources/sine-triangle-uint8-ffmpeg.wav | 3 +++ rhubarb/tests/resources/sine-triangle-uint8-soundforge.wav | 3 +++ rhubarb/tests/resources/sine-triangle-vorbis-ffmpeg.wav | 3 +++ 23 files changed, 72 insertions(+) create mode 100644 rhubarb/tests/resources/README.adoc create mode 100644 rhubarb/tests/resources/sine-triangle-flac-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-float32-audacity.wav create mode 100644 rhubarb/tests/resources/sine-triangle-float32-audition.wav create mode 100644 rhubarb/tests/resources/sine-triangle-float32-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-float32-soundforge.wav create mode 100644 rhubarb/tests/resources/sine-triangle-float64-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int16-audacity.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int16-audition.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int16-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int16-soundforge.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int24-audacity.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int24-audition.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int24-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int24-soundforge.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int32-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-int32-soundforge.wav create mode 100644 rhubarb/tests/resources/sine-triangle-uint8-audition.wav create mode 100644 rhubarb/tests/resources/sine-triangle-uint8-ffmpeg.wav create mode 100644 rhubarb/tests/resources/sine-triangle-uint8-soundforge.wav create mode 100644 rhubarb/tests/resources/sine-triangle-vorbis-ffmpeg.wav diff --git a/.gitattributes b/.gitattributes index 176a458..3384f57 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,7 @@ * text=auto + +# Use Git LFS for binary files +*.wav filter=lfs diff=lfs merge=lfs -text +*.flac filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text +*.mp3 filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f6a96e..2ef6204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + lfs: true - name: Restore Boost from cache uses: actions/cache@v2 id: cache-boost diff --git a/rhubarb/tests/resources/README.adoc b/rhubarb/tests/resources/README.adoc new file mode 100644 index 0000000..8d9510b --- /dev/null +++ b/rhubarb/tests/resources/README.adoc @@ -0,0 +1,4 @@ +This directory contains test files for the WAVE file reader. + +All files starting with _sine-rect_ contain the same 10-second stereo signal sampled at 48,000 Hz. The left channel contains a 1 kHz sine wave, the right channel contains a 1 kHz triangle wave. As those signals are strictly periodic, Git can compress these files very efficiently. + diff --git a/rhubarb/tests/resources/sine-triangle-flac-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-flac-ffmpeg.wav new file mode 100644 index 0000000..02d91ff --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-flac-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:491fee574896f2da599659b08498ea9b605bb4679dc38ce588490222831a0c31 +size 1937792 diff --git a/rhubarb/tests/resources/sine-triangle-float32-audacity.wav b/rhubarb/tests/resources/sine-triangle-float32-audacity.wav new file mode 100644 index 0000000..9c3ac39 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-float32-audacity.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61a5d297769ac42ffc8e54d0f3923ee0064ce8ecba14ccc874b31c25e5c8c9e1 +size 3840194 diff --git a/rhubarb/tests/resources/sine-triangle-float32-audition.wav b/rhubarb/tests/resources/sine-triangle-float32-audition.wav new file mode 100644 index 0000000..d11a86c --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-float32-audition.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5645586937fa012dfc051e2c38126c6221a1937dd2fbceebfddb971be53a44d +size 3845534 diff --git a/rhubarb/tests/resources/sine-triangle-float32-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-float32-ffmpeg.wav new file mode 100644 index 0000000..7e0c1a6 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-float32-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4092089069670b6b1259f5cd34f91afa36066678f80464186118ddcff695923 +size 3840114 diff --git a/rhubarb/tests/resources/sine-triangle-float32-soundforge.wav b/rhubarb/tests/resources/sine-triangle-float32-soundforge.wav new file mode 100644 index 0000000..3410566 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-float32-soundforge.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05e91311e5d7a266cb15f057e60f59295b535f0bf3313c4d9cde54037cc6fa3f +size 3840078 diff --git a/rhubarb/tests/resources/sine-triangle-float64-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-float64-ffmpeg.wav new file mode 100644 index 0000000..4b84ce5 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-float64-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdf972bf29dc137ff022761260169dbd6e15c668f7cde69f1925de393fa88544 +size 7680114 diff --git a/rhubarb/tests/resources/sine-triangle-int16-audacity.wav b/rhubarb/tests/resources/sine-triangle-int16-audacity.wav new file mode 100644 index 0000000..0d44a08 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int16-audacity.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd8d91cf1d1593a103b5b43ea08ab46ca1d66e55e10bbe97c097f7e605155904 +size 1920150 diff --git a/rhubarb/tests/resources/sine-triangle-int16-audition.wav b/rhubarb/tests/resources/sine-triangle-int16-audition.wav new file mode 100644 index 0000000..7f9fc8a --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int16-audition.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:885f25245b4227c1761828a6365cb60fa36d81d7e636773ab3702621640bf651 +size 1925534 diff --git a/rhubarb/tests/resources/sine-triangle-int16-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-int16-ffmpeg.wav new file mode 100644 index 0000000..e3e4b68 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int16-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63e38d3e7b9e03c08a8f46a25b8d7325d0565130a5b74296cbe64e49eea65696 +size 1920078 diff --git a/rhubarb/tests/resources/sine-triangle-int16-soundforge.wav b/rhubarb/tests/resources/sine-triangle-int16-soundforge.wav new file mode 100644 index 0000000..4825a4a --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int16-soundforge.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13741b9dfbf358485cbbc0076713ee9473be970f8cc4686ca75cf286845b2d20 +size 1920078 diff --git a/rhubarb/tests/resources/sine-triangle-int24-audacity.wav b/rhubarb/tests/resources/sine-triangle-int24-audacity.wav new file mode 100644 index 0000000..9b8bbb5 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int24-audacity.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b06e78f2ba11722d516b8367b7c847452d55b2936ab2f28b82fa6fd5c97f383 +size 2880150 diff --git a/rhubarb/tests/resources/sine-triangle-int24-audition.wav b/rhubarb/tests/resources/sine-triangle-int24-audition.wav new file mode 100644 index 0000000..8359a18 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int24-audition.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f668649a95293cd031e2d169e444fedfb07aabc6ded2548ce310262aa66c1082 +size 2885534 diff --git a/rhubarb/tests/resources/sine-triangle-int24-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-int24-ffmpeg.wav new file mode 100644 index 0000000..2ab556e --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int24-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93248779904023c1e22bd4970f507980a6496e8327dd8a49ce81616375c96f09 +size 2880102 diff --git a/rhubarb/tests/resources/sine-triangle-int24-soundforge.wav b/rhubarb/tests/resources/sine-triangle-int24-soundforge.wav new file mode 100644 index 0000000..af729a0 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int24-soundforge.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:706c94020f6fe8368383ef28720e10c701e239a9665213eee831e28d59a7a753 +size 2880078 diff --git a/rhubarb/tests/resources/sine-triangle-int32-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-int32-ffmpeg.wav new file mode 100644 index 0000000..cc051f7 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int32-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:374e6a01afc020355abfffb4b8bfbfefee9ace878081dc265134ae79ccfaf820 +size 3840102 diff --git a/rhubarb/tests/resources/sine-triangle-int32-soundforge.wav b/rhubarb/tests/resources/sine-triangle-int32-soundforge.wav new file mode 100644 index 0000000..d885aec --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-int32-soundforge.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f88ac09446b567afa0783a275ee2d3f15e3a05749c08b7bdc75b6f4bbfa1acb +size 3840078 diff --git a/rhubarb/tests/resources/sine-triangle-uint8-audition.wav b/rhubarb/tests/resources/sine-triangle-uint8-audition.wav new file mode 100644 index 0000000..168a106 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-uint8-audition.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e8fbc6809850523bc274863f07d13b258647b496977ffbf62f2d9ef20f1f40d +size 965534 diff --git a/rhubarb/tests/resources/sine-triangle-uint8-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-uint8-ffmpeg.wav new file mode 100644 index 0000000..57fbdab --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-uint8-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bff9c1914f12e3bb1f8c1de515bb4d0b38a44dd5d3e5ba7e8e5f9406fe3dfd04 +size 960078 diff --git a/rhubarb/tests/resources/sine-triangle-uint8-soundforge.wav b/rhubarb/tests/resources/sine-triangle-uint8-soundforge.wav new file mode 100644 index 0000000..e46e807 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-uint8-soundforge.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c50aa57ea11921d4be417d5339a91ecfa095e755be06adbfba0d4bb52bac56c6 +size 960078 diff --git a/rhubarb/tests/resources/sine-triangle-vorbis-ffmpeg.wav b/rhubarb/tests/resources/sine-triangle-vorbis-ffmpeg.wav new file mode 100644 index 0000000..6b84312 --- /dev/null +++ b/rhubarb/tests/resources/sine-triangle-vorbis-ffmpeg.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3ffb9e1aaf3b06cb02f07b8aeeb9c9f400e40e265618991e027b59295f7e562 +size 72652