Skip to content

Commit

Permalink
Start working towards audio test
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtCoDFish committed Mar 18, 2018
1 parent 9ffc637 commit 6e8289d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ if ( NOT EXCLUDE_AUDIO_TEST )
set (AUDIOTEST_SOURCES test/APGAudioTest.cpp)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${AUDIOTEST_FLAGS}")

if ( EMSCRIPTEN )
set (CMAKE_EXE_LINKER_FLAGS "${BASE_LINKER_FLAGS} --embed-file assets/test_music.ogg --embed-file assets/test_sound.wav -O2")
endif ()

add_executable(AudioTest ${AUDIOTEST_SOURCES} ${EXTRA_SOURCES})
target_link_libraries(AudioTest ${APG_LIB_NAME} ${EXAMPLE_LIBS})
endif ( NOT EXCLUDE_AUDIO_TEST )
Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDLAudioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "easylogging++.h"

APG::SDLAudioManager::SDLAudioManager(int frequency, uint16_t format, int channelCount) :
APG::AudioManager() {
APG::AudioManager() {
const auto logger = el::Loggers::getLogger("APG");

if (Mix_OpenAudio(frequency, format, 2, 1024) == -1) {
Expand Down

0 comments on commit 6e8289d

Please sign in to comment.