diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/load/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/mossrose.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/load/CMakeLists.txt b/src/load/CMakeLists.txt index 3369dd2..c435621 100644 --- a/src/load/CMakeLists.txt +++ b/src/load/CMakeLists.txt @@ -2,6 +2,7 @@ project(mossrose) target_sources(mossrose PUBLIC ${CMAKE_CURRENT_LIST_DIR}/load-mp3.c + ${CMAKE_CURRENT_LIST_DIR}/load-wav.c ) target_include_directories(mossrose PUBLIC ${CMAKE_SOURCE_DIR}/3rdparty/minimp3) diff --git a/src/mossrose.c b/src/mossrose.c index 61ee27b..bf45eef 100644 --- a/src/mossrose.c +++ b/src/mossrose.c @@ -160,6 +160,11 @@ struct mossrose_sound_t * mossrose_load_mp3(const char *filename) return load_mp3(filename); } +struct mossrose_sound_t * mossrose_load_wav(const char *filename) +{ + return load_wav(filename); +} + void mossrose_free_sound(struct mossrose_sound_t *sound) { |