Mercurial > almixer_isolated
view EXAMPLES/CMakeLists.txt @ 78:714ec6c5789d
Fixed a unit conversion bug in the Ogg Tremor decoder for SoundDecoder. This fixes out of memory issues with LoadAll on long, but still reasonably sized .ogg files on some Android devices.
Ogg Vorbis uses seconds and we multiply by 1000 to convert to milliseconds. But Ogg Tremor already uses milliseconds but I was still multiplying by 1000. (The Tremor decoder was derived from the Vorbis decoder so this is actually the second time I hit a bug like this.)
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Thu, 25 Oct 2012 16:12:50 -0700 |
parents | ee50db043251 |
children |
line wrap: on
line source
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) IF(APPLE) IF(NOT ALMIXER_COMPILE_WITHOUT_SDL) SET(SUPPORT_FILES SDLMain.m) ENDIF(NOT ALMIXER_COMPILE_WITHOUT_SDL) ENDIF(APPLE) ADD_EXECUTABLE(playstream ${CMAKE_CURRENT_SOURCE_DIR}/playstream.c ${SUPPORT_FILES}) TARGET_LINK_LIBRARIES(playstream ALmixer ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY}) ADD_EXECUTABLE(playsound ${CMAKE_CURRENT_SOURCE_DIR}/playsound.c ${SUPPORT_FILES}) TARGET_LINK_LIBRARIES(playsound ALmixer ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY})