mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 02:27:36 -04:00
Implement SoundEmit modifier
This sound emitter modifier is almost as fully functional as PlasmaMAX's various sound emitter components. Additional functionality was added to C korlib so that artists can specify OGG Vorbis sound files. If korlib is not compiled, only WAVE sounds can be utilized in Korman. This fixes some of the more fiddly bugs related to exporting to CWE that were seen in PyPRP. Sound nodes to be implemented...
This commit is contained in:
30
korlib/cmake/FindOgg.cmake
Normal file
30
korlib/cmake/FindOgg.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
if(Ogg_INCLUDE_DIR AND Ogg_LIBRARY)
|
||||
set(Ogg_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
|
||||
|
||||
find_path(Ogg_INCLUDE_DIR ogg/ogg.h
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
find_library(Ogg_LIBRARY NAMES ogg
|
||||
PATHS /usr/local/lib /usr/lib
|
||||
)
|
||||
|
||||
set(Ogg_LIBRARIES ${Ogg_LIBRARY})
|
||||
|
||||
|
||||
if(Ogg_INCLUDE_DIR AND Ogg_LIBRARY)
|
||||
set(Ogg_FOUND TRUE)
|
||||
endif()
|
||||
|
||||
if (Ogg_FOUND)
|
||||
if(NOT Ogg_FIND_QUIETLY)
|
||||
message(STATUS "Found libogg: ${Ogg_INCLUDE_DIR}")
|
||||
endif()
|
||||
else()
|
||||
if(Ogg_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find libogg")
|
||||
endif()
|
||||
endif()
|
37
korlib/cmake/FindVorbis.cmake
Normal file
37
korlib/cmake/FindVorbis.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
if(Vorbis_INCLUDE_DIR AND Vorbis_LIBRARY)
|
||||
set(Vorbis_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
|
||||
|
||||
find_path(Vorbis_INCLUDE_DIR vorbis/codec.h
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
find_library(Vorbis_LIBRARY NAMES vorbis
|
||||
PATHS /usr/local/lib /usr/lib
|
||||
)
|
||||
|
||||
find_library(VorbisFile_LIBRARY NAMES vorbisfile
|
||||
PATHS /usr/local/lib /usr/lib
|
||||
)
|
||||
|
||||
set(Vorbis_LIBRARIES
|
||||
${Vorbis_LIBRARY}
|
||||
${VorbisFile_LIBRARY}
|
||||
)
|
||||
|
||||
|
||||
if(Vorbis_INCLUDE_DIR AND Vorbis_LIBRARY AND VorbisFile_LIBRARY)
|
||||
set(Vorbis_FOUND TRUE)
|
||||
endif()
|
||||
|
||||
if (Vorbis_FOUND)
|
||||
if(NOT Vorbis_FIND_QUIETLY)
|
||||
message(STATUS "Found libvorbis: ${Vorbis_INCLUDE_DIR}")
|
||||
endif()
|
||||
else()
|
||||
if(Vorbis_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find libvorbis")
|
||||
endif()
|
||||
endif()
|
Reference in New Issue
Block a user