diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 21:51:36 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 21:51:36 +0300 |
commit | a1101ec38cb29f701457215e35f75904326120cb (patch) | |
tree | e0b40731f65b9711d64353a78fd51ffa795b1b67 /CMakeLists.txt | |
parent | 4bf163ecfac27c3dd86dff96df6f4647f9afe021 (diff) |
Support Ogg Vorbis audio
Playback starts as soon as possible, so one can listen while streaming.
stb_vorbis.c needed a tiny tweak to not die on a file without (Ogg? Vorbis?) comments.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 263942e3..ab207480 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -179,6 +179,8 @@ target_compile_options (app PUBLIC | |||
179 | -Werror=implicit-function-declaration | 179 | -Werror=implicit-function-declaration |
180 | -Werror=incompatible-pointer-types | 180 | -Werror=incompatible-pointer-types |
181 | ${SDL2_CFLAGS} | 181 | ${SDL2_CFLAGS} |
182 | -DSTB_VORBIS_NO_STDIO=1 | ||
183 | -DSTB_VORBIS_NO_INTEGER_CONVERSION=1 | ||
182 | ) | 184 | ) |
183 | target_compile_definitions (app PUBLIC LAGRANGE_APP_VERSION="${PROJECT_VERSION}") | 185 | target_compile_definitions (app PUBLIC LAGRANGE_APP_VERSION="${PROJECT_VERSION}") |
184 | if (ENABLE_X11_SWRENDER) | 186 | if (ENABLE_X11_SWRENDER) |