mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 10:10:52 +00:00
Moved: Sound sources sample to sound sample directory
Added: CMake configuration for ogg vorbis stream source sample
This commit is contained in:
parent
385fdefbfc
commit
d229915603
52 changed files with 20 additions and 4 deletions
|
@ -17,5 +17,5 @@ IF(WITH_PACS)
|
||||||
ENDIF(WITH_PACS)
|
ENDIF(WITH_PACS)
|
||||||
|
|
||||||
IF(WITH_SOUND)
|
IF(WITH_SOUND)
|
||||||
ADD_SUBDIRECTORY(sound_sources)
|
ADD_SUBDIRECTORY(sound)
|
||||||
ENDIF(WITH_SOUND)
|
ENDIF(WITH_SOUND)
|
||||||
|
|
4
code/nel/samples/sound/CMakeLists.txt
Normal file
4
code/nel/samples/sound/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(sound_sources)
|
||||||
|
ADD_SUBDIRECTORY(stream_ogg_vorbis)
|
||||||
|
|
|
@ -7,7 +7,7 @@ ADD_DEFINITIONS(-DNL_SOUND_DATA="\\"${NL_SHARE_PREFIX}/nl_sample_sound/\\"" ${LI
|
||||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(nl_sample_sound_sources nelmisc nelsound)
|
TARGET_LINK_LIBRARIES(nl_sample_sound_sources nelmisc nelsound)
|
||||||
NL_DEFAULT_PROPS(nl_sample_sound_sources "NeL, Samples: Sound System")
|
NL_DEFAULT_PROPS(nl_sample_sound_sources "NeL, Samples: Sound: Sound Sources")
|
||||||
NL_ADD_RUNTIME_FLAGS(nl_sample_sound_sources)
|
NL_ADD_RUNTIME_FLAGS(nl_sample_sound_sources)
|
||||||
|
|
||||||
INSTALL(TARGETS nl_sample_sound_sources RUNTIME DESTINATION bin COMPONENT samplessound)
|
INSTALL(TARGETS nl_sample_sound_sources RUNTIME DESTINATION bin COMPONENT samplessound)
|
12
code/nel/samples/sound/stream_ogg_vorbis/CMakeLists.txt
Normal file
12
code/nel/samples/sound/stream_ogg_vorbis/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FILE(GLOB SRC *.cpp *.h)
|
||||||
|
|
||||||
|
ADD_EXECUTABLE(nl_sample_stream_ogg_vorbis ${SRC})
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(nl_sample_stream_ogg_vorbis nelmisc nelsound)
|
||||||
|
NL_DEFAULT_PROPS(nl_sample_stream_ogg_vorbis "NeL, Samples: Sound: Stream OGG Vorbis")
|
||||||
|
NL_ADD_RUNTIME_FLAGS(nl_sample_sound_sources)
|
||||||
|
|
||||||
|
INSTALL(TARGETS nl_sample_stream_ogg_vorbis RUNTIME DESTINATION bin COMPONENT samplessound)
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
#define NL_SOUND_DATA "."
|
#define NL_SOUND_DATA "."
|
||||||
#endif // NL_SOUND_DATA
|
#endif // NL_SOUND_DATA
|
||||||
|
|
||||||
#define SAMPLE_OGG "O:/src/samples/music_stream/data/aeon_1_10_mystic_river.ogg"
|
#define SAMPLE_OGG "D:/source/kaetemi/toverhex/src/samples/music_stream/data/aeon_1_10_mystic_river.ogg"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
|
@ -430,7 +430,7 @@ static void runSample()
|
||||||
|
|
||||||
printf("End of song\n");
|
printf("End of song\n");
|
||||||
printf("Press ANY key to exit\n");
|
printf("Press ANY key to exit\n");
|
||||||
while (!_kbhit()) { s_AudioMixer->update(); Sleep(10); } _getch();
|
while (!_kbhit()) { s_AudioMixer->update(); nlSleep(10); } _getch();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue