Commit graph

  • efc81a8f20 add new API function pa_timeval_store() Lennart Poettering 2007-10-07 13:54:49 +00:00
  • d74fa66f35 Fix build; change return value of pa_rtclock_hrtimer() to pa_bool Lennart Poettering 2007-10-07 13:54:15 +00:00
  • 87cc073653 fix poll.h check, bad boy ossman broke Lennart Poettering 2007-10-04 22:41:33 +00:00
  • cb400878fe Don't call pa_rtsig_configure() when we lack the necessary defines. Pierre Ossman 2007-10-03 15:00:36 +00:00
  • 60a935b29f module_ladspa used libltdl so make sure it links against it. Pierre Ossman 2007-10-03 15:00:13 +00:00
  • 586ef22ee4 Platform dependent semaphore implementation for Windows. Pierre Ossman 2007-10-03 14:48:40 +00:00
  • cef6563273 Assorted minor Windows compatibility fixes for recent code updates. Pierre Ossman 2007-10-03 14:47:26 +00:00
  • ce74146a81 Add stubs when RT signals aren't available. Pierre Ossman 2007-10-03 14:46:36 +00:00
  • 8dcc1fa616 Adapt rtpoll and friends to Windows by replacing timespec with timeval and add a fallback when clock_gettime() isn't available. Pierre Ossman 2007-10-03 14:43:56 +00:00
  • ef8812e89b Replace all references to sys/poll.h with poll.h as that's what POSIX defines. Pierre Ossman 2007-10-03 14:41:21 +00:00
  • 7c1768d4d1 update native protocol to make use of pa_memblockq_pop_missing Lennart Poettering 2007-10-01 16:42:59 +00:00
  • 2e780e88c2 Move request size handling into pa_memblockq, function pa_memblockq_pop_missing() Lennart Poettering 2007-10-01 16:41:50 +00:00
  • d6a2203207 Fix race condition between IO thread creation and pa_sink_put(). Move activation of rtpoll fds when we change the state INIT->IDLE. Lennart Poettering 2007-10-01 16:39:04 +00:00
  • 9d34a1e18b fix trivial typo Lennart Poettering 2007-10-01 00:44:29 +00:00
  • abd692e1ba fix silence initializer for alaw and ulaw Lennart Poettering 2007-10-01 00:16:24 +00:00
  • dbcd086332 Fixed PA_GCC_CONST definition. Tanu Kaskinen 2007-09-30 13:19:26 +00:00
  • bdf97468f3 Update module-solaris to new structure. Pierre Ossman 2007-09-28 14:01:25 +00:00
  • 67b899acc9 treat timer_enabled like a real, grown-up boolean variable Lennart Poettering 2007-09-28 13:15:11 +00:00
  • 33f2f497de rework module-combine once again. We now run the data generation always in a seperate thread. This should help use to avoid all the awful race conditions we had in previously Lennart Poettering 2007-09-28 13:02:28 +00:00
  • 229afb5e2d Move the poll() call outside the #ifdef checking for ppoll, since we want the poll in all cases. Prior to this change the check for negative return values of poll/ppoll was never actually executed when ppoll() was available Lennart Poettering 2007-09-28 13:00:35 +00:00
  • f8c17861b8 use the full range of RTSIGS for our stuff Lennart Poettering 2007-09-28 12:53:17 +00:00
  • 3cdff5f3cc Allocate rtsigs from back to front, to avoid clashes with other libraries makeing use of rtsigs Lennart Poettering 2007-09-28 12:52:47 +00:00
  • df33b4c7b3 only do IO if we are RUNNING or IDLE, but not when we are in INIT Lennart Poettering 2007-09-28 12:22:56 +00:00
  • 6d8aea724e Incorrectly used str2sig() instead of sig2str(). Pierre Ossman 2007-09-28 09:23:05 +00:00
  • 584ca6193c don't free silence memblocks that don't exist Lennart Poettering 2007-09-28 00:30:48 +00:00
  • 107f12ae3c speed up semaphore allocation with an flist Lennart Poettering 2007-09-28 00:29:51 +00:00
  • 008c709900 Use Linux eventfd() if kernel supports it Lennart Poettering 2007-09-26 22:50:08 +00:00
  • e99bc33bcb fix build with compilers that lack __thread Lennart Poettering 2007-09-26 13:33:25 +00:00
  • a9e667bb83 make sure when can shutdown PA cleanly without segfault Lennart Poettering 2007-09-25 01:58:16 +00:00
  • 5fe1589c8e work around newest open() magic in fedora glibc Lennart Poettering 2007-09-25 00:53:49 +00:00
  • 1687226811 fix make dist Lennart Poettering 2007-09-25 00:45:57 +00:00
  • 86ec421592 fix suspending in module-combine.c Lennart Poettering 2007-09-24 23:53:58 +00:00
  • 609ad12f29 * decouple suspending of monitor sources and their sinks * implement resume-on-uncork Lennart Poettering 2007-09-24 23:32:52 +00:00
  • 0e3e9e2274 only post data into the monitor source when it is not suspended Lennart Poettering 2007-09-24 23:32:01 +00:00
  • f0f9df9990 * add new state changed hook for streams * update sink->n_corked properly when moving streams Lennart Poettering 2007-09-24 23:31:22 +00:00
  • ac86fa1b97 fix IDLE vs. RUNNING state handling of sinks/sources when changing cork status for streams Lennart Poettering 2007-09-24 22:41:00 +00:00
  • 3c75d35dd0 rework zeroconf service publishing, to use synchronous hooks instead of asynchronous subscription events. Don't push autoload entries anymore. Lennart Poettering 2007-09-24 21:49:02 +00:00
  • e37fa011ac add hooks for name/description changes of sinks/source and streams Lennart Poettering 2007-09-24 21:47:22 +00:00
  • ef020c6e89 fix stream corking: ignore pa_sink_input() when we are in corked state Lennart Poettering 2007-09-24 17:14:00 +00:00
  • 55651ec215 don't count streams using the monitor source in pa_sink_used_by(), because this would disallow suspending a sink ehn an rtp stream is connected Lennart Poettering 2007-09-24 16:24:23 +00:00
  • ba322a49e1 drop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they were a bad idea in the first place. All sinks/sources are now *required* to handle suspending in one way or another. Luckily all current sink/source implementations handle it fine anyway. Lennart Poettering 2007-09-24 16:10:43 +00:00
  • 77ed60ce4c instead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer. This allows us the keep the mixer fd open while closing the dsp device while suspending. Lennart Poettering 2007-09-23 21:03:24 +00:00
  • fc00eaf1d4 use O_NOFOLLOW when creating lock files, too Lennart Poettering 2007-09-23 19:30:56 +00:00
  • 2860685269 use O_NOFOLLOW when creating PID file, to avoid symlink vulnerability Lennart Poettering 2007-09-23 19:23:44 +00:00
  • de079ac404 Added an assertion for the case when the sink programmer hasn't installed the thread_mq properly. Tanu Kaskinen 2007-09-23 14:51:07 +00:00
  • 7bcbf16e94 Comment typo fix. Tanu Kaskinen 2007-09-23 14:39:39 +00:00
  • ecad937409 Fix the assignment of control values by using the right variable for indexing. Tanu Kaskinen 2007-09-22 08:39:07 +00:00
  • 1c44be2a7b Correct the parameter positions with the pa_cvolume_set() call. Tanu Kaskinen 2007-09-22 07:31:29 +00:00
  • e04a8576bb minor optimization Lennart Poettering 2007-09-22 02:00:32 +00:00
  • 6cfb09698a include the name of the master sink in the name for piggy-backed virtual sinks Lennart Poettering 2007-09-22 01:35:32 +00:00
  • c6b43bf119 prefix by order macros with PA_ Lennart Poettering 2007-09-22 01:16:14 +00:00
  • 668340099c rework a couple of sample type converters, to actually work Lennart Poettering 2007-09-22 00:26:18 +00:00
  • 78a9ad336b - rework volume adjustment code to not require fp - don't hit an assert when we cannot do a volume adjustment, instead, print a warning and go on Lennart Poettering 2007-09-22 00:25:17 +00:00
  • d7a0876d7f fix selection of working format Lennart Poettering 2007-09-22 00:22:36 +00:00
  • 9db42672d4 make use of byte swap builtins of gcc if they are available Lennart Poettering 2007-09-22 00:21:08 +00:00
  • f26de8077d add test program for the resampler Lennart Poettering 2007-09-22 00:19:56 +00:00
  • c34a2635b2 allow _unlink() functions to be called as many times as people want, even before _put() was called Lennart Poettering 2007-09-21 13:32:00 +00:00
  • 1fc168b02f clamp sample data to -1 .. 1, before passing it to the plugin; if a control port data specification is left empty, initialize with the default value of the plugin Lennart Poettering 2007-09-21 00:16:34 +00:00
  • 29d25ec8d9 add CLAMP macro Lennart Poettering 2007-09-21 00:14:20 +00:00
  • e205bb2555 don't segfault when the master changes Lennart Poettering 2007-09-20 22:01:58 +00:00
  • 3b2835d334 properly detach/attach when moving sink inputs Lennart Poettering 2007-09-20 22:01:07 +00:00
  • f3f44dab37 rework module-combine again Lennart Poettering 2007-09-20 20:33:34 +00:00
  • c40c1682be maintain the attach status in a boolean variable 'attach' accessible from the IO thread for sink_inputs/source_outputs Lennart Poettering 2007-09-20 20:30:03 +00:00
  • 75647bc38f render new data always in the master sink's thread, fixing missing locking Lennart Poettering 2007-09-19 22:21:55 +00:00
  • a8a9ee499d make sure we initialize thread private data before we move our ghost sink to the rt thread, not after Lennart Poettering 2007-09-19 21:20:15 +00:00
  • 42b71ff965 fix trivial typo Lennart Poettering 2007-09-19 19:06:25 +00:00
  • d716e3cd7b fix check for lrintf, make resample2.c again identical to upstream ffmpeg Lennart Poettering 2007-09-19 19:03:38 +00:00
  • 75f799a3d8 make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return void, name them similarly, only pass a single fd Lennart Poettering 2007-09-19 00:12:01 +00:00
  • 0fcad97782 copy free_cb into a temporary variable first, to avoid compiler warning Lennart Poettering 2007-09-19 00:08:40 +00:00
  • ac66b6af08 fall back to plughw:, if hw: doesn't work, in the alsa source, too Lennart Poettering 2007-09-18 23:35:05 +00:00
  • 781cf499cf properly release memblock always abd as soon as possible Lennart Poettering 2007-09-18 23:24:13 +00:00
  • 1fd9afdf7d make use of pa_bool_t on a few places where applicable; really start work_cb Lennart Poettering 2007-09-18 23:21:06 +00:00
  • b3093d8405 lower SO_PRIORITY priority to 6, since this is the best we get without being root Lennart Poettering 2007-09-18 22:29:24 +00:00
  • ef8df41042 make rtp send socket low delay Lennart Poettering 2007-09-18 22:25:18 +00:00
  • f44ddd1052 add new pa_socket_udp_low_delay() API Lennart Poettering 2007-09-18 22:24:45 +00:00
  • 6b2fd2328a add two missing header file inclusions Lennart Poettering 2007-09-18 21:31:21 +00:00
  • eb23601bb7 bug fixes for module-rtp-recv Lennart Poettering 2007-09-18 19:52:45 +00:00
  • 8fdf054e68 make sure we don't call pa_source_post() for a monitor source after it was unlinked Lennart Poettering 2007-09-18 19:52:20 +00:00
  • ca717643ee If PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes Lennart Poettering 2007-09-18 19:51:26 +00:00
  • a558e9312e port module-rtp-send.c to lock-free core Lennart Poettering 2007-09-18 17:41:51 +00:00
  • 08d4b237a3 actually close the alsa device before we try to reopen it as plughw Lennart Poettering 2007-09-18 12:53:42 +00:00
  • 4ed41f3dab strtof() is a rather recent addition to C. Fall back to strtod() if it isn't available. Pierre Ossman 2007-09-18 10:47:03 +00:00
  • aff22cfc62 NSIG seems to be more common than _NSIG. Pierre Ossman 2007-09-18 10:45:54 +00:00
  • 03d9863980 Emulate lrintf with simple truncation if it isn't available. Pierre Ossman 2007-09-18 10:38:07 +00:00
  • 31dfb317fa Make sure the header file is only included on linux (as this is a linux-only feature). Pierre Ossman 2007-09-18 10:36:17 +00:00
  • df1d34753f NSIG is not defined by neither C99 nor POSIX so we can't rely on it. Pierre Ossman 2007-09-18 08:57:54 +00:00
  • 4cde5073f0 add LADSPA sink than can be piggy-backed ontop of another sink Lennart Poettering 2007-09-17 22:42:20 +00:00
  • 7b4f981e4f print a message when we fall back on plughw Lennart Poettering 2007-09-17 22:40:42 +00:00
  • 8ff7d567d3 add a locale-independant pa_atof() implementation Lennart Poettering 2007-09-17 22:39:51 +00:00
  • 4cdf2ce202 hide sig2str-test Lennart Poettering 2007-09-17 22:38:39 +00:00
  • 1ae473bd1b fall back to plughw: if hw: doesn't work Lennart Poettering 2007-09-17 17:00:50 +00:00
  • 26a1ae7bbb Rename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name, not a human readable string. This follows the Solaris API of sig2str() a bit. Also, add all remaining signals to the list of signal names. Lennart Poettering 2007-09-17 15:26:18 +00:00
  • d3b898513c drop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway for marking warnings especially Lennart Poettering 2007-09-17 14:03:04 +00:00
  • 19eb7ebd4d once.c is no longer POSIX specific. Since it is now considerably more advanced than it used to be, use it on windows, too Lennart Poettering 2007-09-17 13:50:13 +00:00
  • 7f9fea74ef on Linu disable lazy binding altogether Lennart Poettering 2007-09-17 13:32:46 +00:00
  • a1526f105d add missing initialization Lennart Poettering 2007-09-17 13:01:04 +00:00
  • 061e8068aa Add a special ltdl .so loader that avoids lazy frelocations during runtime Lennart Poettering 2007-09-17 12:31:06 +00:00
  • 2741685d3a use priority inheritance on mutexes where applicable Lennart Poettering 2007-09-17 00:32:51 +00:00
  • 61b90a0951 add proper boolean type pa_bool_t Lennart Poettering 2007-09-16 23:28:56 +00:00
  • 116ddaaae9 use gcc const and pure function attributes wherever applicable Lennart Poettering 2007-09-16 22:42:03 +00:00