From 500dd00fb11efdd19aef924b0d8ff0b370c28d33 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 6 Sep 2022 23:21:20 -0500 Subject: implement mp3 loading --- examples/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/CMakeLists.txt') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index aea5060..3797392 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -18,3 +18,10 @@ add_dependencies(examples loop) add_executable(callback ${CMAKE_CURRENT_LIST_DIR}/callback.c) target_link_libraries(callback mossrose) add_dependencies(examples callback) + + +add_executable(mp3 ${CMAKE_CURRENT_LIST_DIR}/mp3.c) +target_link_libraries(mp3 mossrose) +add_dependencies(examples mp3) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/sine-mono.mp3 DESTINATION .) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/weird-stereo.mp3 DESTINATION .) -- cgit v1.2.1