Adding PortAudio for audio backend.

Well that just the beginning!
This commit is contained in:
Godzil
2018-01-30 19:05:50 +00:00
parent e96f36b6de
commit cfe0099595
6 changed files with 16 additions and 2 deletions

View File

@@ -33,6 +33,8 @@ set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-unused-result -We
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/external/coveralls-cmake/cmake)
add_executable(tines main.c paddle.c NESCarts.c)
add_definitions (-DNO_DECIMAL)
if (PPU_ISPAL)
@@ -99,8 +101,6 @@ if (COVERALLS)
) # (Optional) Alternate project cmake module path.
endif()
add_executable(tines main.c paddle.c NESCarts.c)
target_link_libraries(tines apu corecpu mappermanager memorymanager pluginsmanager ppu oslib ${PTHREADLIB})
add_test(NAME tines_test COMMAND $<TARGET_FILE:tines> ${PROJECT_SOURCE_DIR}/data/bad_apple_2.nes)

View File

@@ -11,3 +11,4 @@
add_library(apu SndUnixT.c Sound.c)
#add_library(apu SndAlleg.c Sound.c)
target_link_libraries(apu portaudio_static)

View File

@@ -188,6 +188,8 @@ void initDisplay(GLWindow *g)
abort();
}
glfwSetWindowAspectRatio(g->windows, 4, 3);
glfwMakeContextCurrent(g->windows);
setupGL(g, g->WIDTH, g->HEIGHT);