1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:27:36 +00:00

LibAudio: Test reading and writing of wav files

Includes a set of wav files of different frequencies, these are
each loaded and then written to a temporary file, checking that
the meta-data is correctly read and that the output matches the input.
This commit is contained in:
Lee Hanken 2024-01-07 22:38:00 +00:00 committed by Andrew Kaster
parent 01930a7043
commit 7e3249ad4c
12 changed files with 132 additions and 1 deletions

View file

@ -1,10 +1,13 @@
set(TEST_SOURCES
TestWav.cpp
TestFLACSpec.cpp
TestPlaybackStream.cpp
)
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibAudio LIBS LibAudio)
serenity_test("${source}" LibAudio LIBS LibAudio LibFileSystem)
endforeach()
install(DIRECTORY ${FLAC_SPEC_TEST_PATH} DESTINATION usr/Tests/LibAudio/FLAC)
install(DIRECTORY WAV DESTINATION usr/Tests/LibAudio)