git-svn-id: svn+ssh://jackaudio.org/trunk/jack@91 0c269be4-1314-0410-8aa9-9f06e86f4224tags/0.109.0
| @@ -16,7 +16,7 @@ AM_CFLAGS = $(JACK_CFLAGS) -DADDON_DIR=\"$(ADDON_DIR)\" @GLIB_CFLAGS@ | |||||
| AM_CXXFLAGS = $(JACK_CFLAGS) -DADDON_DIR=\"$(ADDON_DIR)\" | AM_CXXFLAGS = $(JACK_CFLAGS) -DADDON_DIR=\"$(ADDON_DIR)\" | ||||
| jackd_SOURCES = jackd.c engine.c | jackd_SOURCES = jackd.c engine.c | ||||
| jackd_LDFLAGS = -ldl -lpthread $(GLIB_LIBS) | |||||
| jackd_LDFLAGS = -lm -ldl -lpthread $(GLIB_LIBS) | |||||
| jackd_LDADD = libjack.la | jackd_LDADD = libjack.la | ||||
| jack_simple_client_SOURCES = simple_client.c | jack_simple_client_SOURCES = simple_client.c | ||||
| @@ -42,11 +42,11 @@ jack_impulse_grabber_LDADD = libjack.la | |||||
| lib_LTLIBRARIES = libjack.la jack_alsa.la | lib_LTLIBRARIES = libjack.la jack_alsa.la | ||||
| libjack_la_SOURCES = client.c pool.c driver.c | libjack_la_SOURCES = client.c pool.c driver.c | ||||
| libjack_la_LDFLAGS = $(GLIB_LIBS) | |||||
| libjack_la_LDFLAGS = $(GLIB_LIBS) -lm | |||||
| jack_alsa_la_LDFLAGS = -module | jack_alsa_la_LDFLAGS = -module | ||||
| jack_alsa_la_SOURCES = alsa_driver.c hammerfall.c generic_hw.c memops.c | jack_alsa_la_SOURCES = alsa_driver.c hammerfall.c generic_hw.c memops.c | ||||
| jack_alsa_la_LIBADD = -lasound $(GLIB_LIBS) | |||||
| jack_alsa_la_LIBADD = -lasound $(GLIB_LIBS) -lm | |||||
| pkgconfigdir = $(libdir)/pkgconfig | pkgconfigdir = $(libdir)/pkgconfig | ||||
| pkgconfig_DATA = jack.pc | pkgconfig_DATA = jack.pc | ||||
| @@ -718,11 +718,6 @@ alsa_driver_wait (alsa_driver_t *driver) | |||||
| nfds += driver->capture_nfds; | nfds += driver->capture_nfds; | ||||
| } | } | ||||
| if (need_capture != need_playback) { | |||||
| fprintf (stderr, "poll needs capture: %s playback: %s\n", need_capture ? "yes":"no", | |||||
| need_playback ? "yes":"no"); | |||||
| } | |||||
| /* ALSA doesn't set POLLERR in some versions of 0.9.X */ | /* ALSA doesn't set POLLERR in some versions of 0.9.X */ | ||||
| for (i = 0; i < nfds; i++) { | for (i = 0; i < nfds; i++) { | ||||
| @@ -1150,10 +1150,12 @@ jack_become_real_time (pthread_t thread, int priority) | |||||
| if ((x = pthread_setschedparam (thread, SCHED_FIFO, &rtparam)) != 0) { | if ((x = pthread_setschedparam (thread, SCHED_FIFO, &rtparam)) != 0) { | ||||
| jack_error ("cannot set thread to real-time priority (FIFO/%d) (%d: %s)", rtparam.sched_priority, x, strerror (errno)); | jack_error ("cannot set thread to real-time priority (FIFO/%d) (%d: %s)", rtparam.sched_priority, x, strerror (errno)); | ||||
| return -1; | |||||
| } | } | ||||
| if (mlockall (MCL_CURRENT | MCL_FUTURE) != 0) { | if (mlockall (MCL_CURRENT | MCL_FUTURE) != 0) { | ||||
| jack_error ("cannot lock down memory for RT thread (%s)", strerror (errno)); | jack_error ("cannot lock down memory for RT thread (%s)", strerror (errno)); | ||||
| return -1; | |||||
| } | } | ||||
| return 0; | return 0; | ||||
| @@ -1186,7 +1188,9 @@ jack_main_thread (void *arg) | |||||
| // unsigned long start, end; | // unsigned long start, end; | ||||
| if (engine->control->real_time) { | if (engine->control->real_time) { | ||||
| jack_become_real_time (pthread_self(), engine->rtpriority); | |||||
| if (jack_become_real_time (pthread_self(), engine->rtpriority)) { | |||||
| engine->control->real_time = 0; | |||||
| } | |||||
| } | } | ||||
| pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, NULL); | pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, NULL); | ||||