Commit 0a85e792 authored by sletz's avatar sletz
Browse files

Update Linux makefile

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1233 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 308d46a4
......@@ -41,6 +41,8 @@ objects_linux_dummy := JackDummyDriver.o
CFLAGS := -g -O3 -fPIC -DUSE_POSIX_SHM $(addprefix -I, $(subprojects)) $(CFLAGS)
CXXFLAGS := -g -O3 -fPIC -DSOCKET_RPC_FIFO_SEMA -D__SMP__ $(addprefix -I, $(subprojects)) $(CXXFLAGS)
#CFLAGS := -g -fPIC -DUSE_POSIX_SHM $(addprefix -I, $(subprojects)) $(CFLAGS)
#CXXFLAGS := -g -fPIC -DSOCKET_RPC_FIFO_SEMA -D__SMP__ $(addprefix -I, $(subprojects)) $(CXXFLAGS)
# Use this line to compile with POSIX names semaphore
#CXXFLAGS := -g -03 -fPIC -DSOCKET_RPC_POSIX_SEMA -D__SMP__ $(addprefix -I, $(subprojects)) $(CXXFLAGS)
......@@ -49,7 +51,7 @@ CXXFLAGS := -g -O3 -fPIC -DSOCKET_RPC_FIFO_SEMA -D__SMP__ $(addprefix -I, $(s
linux : $(TARGET_LINUX_SERVER_LIB) $(TARGET_LINUX_CLIENT_LIB) $(TARGET_LINUX_SERVER) $(TARGET_LINUX_ALSA) $(TARGET_LINUX_DUMMY) \
synchroClient synchroServer synchroServerClient testSem
synchroClient synchroServer synchroServerClient testSem jack_test
all : $(TARGET_LINUX_SERVER) $(TARGET_LINUX_SERVER_LIB) $(TARGET_LINUX_ALSA) $(TARGET_LINUX_DUMMY)
......@@ -64,6 +66,9 @@ synchroServerClient: JackPosixSemaphore.o testSynchroServerClient.o JackPosixThr
testSem: JackPosixSemaphore.o testSem.o JackPosixThread.o JackError.o JackFifo.o
$(CXX) $(CXXFLAGS) JackPosixSemaphore.o testSem.o JackPosixThread.o JackError.o JackFifo.o $(LIB_LINUX) -o testSem
jack_test: jack_test.o
$(CXX) $(CXXFLAGS) jack_test.o -ljackmp -o jack_test
$(TARGET_LINUX_SERVER_LIB) : $(objects_common_server_lib)
......
......@@ -763,7 +763,7 @@ if (jack_is_realtime(client1) == 1) {}
old_buffer_size = jack_get_buffer_size(client1);
Log("Testing BufferSize change & Callback...\n--> Current buffer size : %i.\n", old_buffer_size);
linebuf = linecount;
if (jack_set_buffer_size(client1, old_buffer_size * factor) < 0) {
if (jack_set_buffer_size(client1, (jack_nframes_t)(old_buffer_size * factor)) < 0) {
printf("!!! ERROR !!! jack_set_buffer_size fails !\n");
}
jack_sleep(1 * 1000);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment