summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Use pulsecore/arpa-inet.h to make arpa/inet.h functionality availableMaarten Bosmans2011-03-1920-140/+68
| | | | Automatically use replacement function on platforms (win32) where not all arpa/inet.h is available natively.
* build: Protect some more variables by ifdefsMaarten Bosmans2011-03-191-1/+9
| | | | This avoids empty directories being created on builds without X11, ALSA, etc.
* build: copy instead of link pacat to other utils on win32Maarten Bosmans2011-03-191-8/+13
| | | | This is necessary as symlinks are not supported on Windows. Also use the $(EXEEXT) variable.
* Find modules and config files relative to the installed libraries.Maarten Bosmans2011-03-195-84/+65
| | | | Do not use replace %PULSE_ROOT% from the environment.
* module-waveout: Add device_name parameterMaarten Bosmans2011-03-151-2/+30
| | | | | | Also use the name in the source/sink description. Based on a patch by srirams, from github.
* Use pa_read, pa_write and pa_poll instead of system functionsMaarten Bosmans2011-02-174-14/+14
|
* tests/rtstutter: Use pa_rtclockMaarten Bosmans2011-02-171-22/+11
|
* Use pa_* instead of generic functions to improve portabilityMaarten Bosmans2011-02-174-14/+15
|
* Give module-waveout a configure switchMaarten Bosmans2011-02-171-3/+6
| | | | | - Also disable the scary DBus and udev warnings when building for win32 - and only install some dbus/x11 specific files when appropriate
* module-waveout: Adapted to updated APIMaarten Bosmans2011-02-172-177/+235
| | | | Waveout sink works again, Wavein source still needs some work.
* win32: Implement pa_randomMaarten Bosmans2011-02-171-1/+16
|
* win32: Implement rtclock based on QueryPerformanceCounterMaarten Bosmans2011-02-179-19/+36
| | | | Also remove some unnecessary <time.h> headers.
* win32: flush stderr after log outputMaarten Bosmans2011-02-171-0/+3
|
* Implement some functions for win32Maarten Bosmans2011-02-174-17/+71
| | | | And disable building binaries for win32 that make no sense there
* Repair some typosMaarten Bosmans2011-02-173-6/+6
|
* Add AM_LDFLAGS more consistently to all commandsMaarten Bosmans2011-02-171-14/+14
|
* Fix dependencies and include necessary headersMaarten Bosmans2011-02-178-1/+15
|
* Use PCRE if POSIX regex.h is not availableMaarten Bosmans2011-02-172-2/+12
|
* Apply #ifdefs around functionality not available on win32Maarten Bosmans2011-02-1719-12/+118
| | | | And also the reverse: around some win32 specific functionality
* Adapt win32 specific code to current APIMaarten Bosmans2011-02-173-5/+29
|
* Use <pulsecore/socket.h> instead of <sys/socket.h>Maarten Bosmans2011-02-1730-108/+52
| | | | | | | | The check whether POSIX socket.h or WIN32 winsock2.h must be included can be made centrally. The downside is that some functionality of e.g. arpa/inet.h is also implemented in winsock.h, so that some files that don't use socket functions, but do use inet.h functions, must also include pulsecore/socket.h. (as well as arpa/inet.h)
* Clean up <poll.h> includesMaarten Bosmans2011-02-1710-20/+8
| | | | | | Instead <pulsecore/poll.h> should be included. That file includes poll.h on platform where it is appropriate. Also remove some unnecessary <ioctl.h> includes.
* Use setenv instead of putenvMaarten Bosmans2011-02-171-1/+1
| | | | | | | In theory putenv could be used to handle freeing of strings yourself, but this was not done in PulseAudio. That leaves no advantages in using putenv. With setenv you're at the mercy of the implementation whether the strings leak, but at least that is better then a certain leak, as it was before.
* alsa: disable period wakeups in tsched mode if possiblePierre-Louis Bossart2011-02-011-0/+28
| | | | | | | | | | | | | | | | | | | | | | | This patch reflects a new capability that Lennart was wishing for. Wish granted... Re-submitting it now that alsa-lib 1.0.24 provides additional entry points to disable period wakeups in timer-scheduling mode if hardware can work without it (HDAudio, oxygen and Intel SST). Example with standard playback on HDAudio output Before change: Top causes for wakeups: 3.8% ( 5.4) [hda_intel] <interrupt> 2.8% ( 4.0) alsa-sink After change: Top causes for wakeups: 2.3% ( 3.0) alsa-sink Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
* echo-cancel: Make Orc file names less sillyArun Raghavan2011-02-013-4/+4
| | | | | The naming was what it was because of the way orc.mak was originally written. This has changed now.
* build: Simplify Orc-related make rulesArun Raghavan2011-02-014-321/+23
| | | | | | | This greatly simplifies the Orc-related make rules. The old system of distributing generated files is gone, which means that anyone who wants to build with Orc support enabled needs to have the orcc compiler installed (presumably the orc 'devel' package in most distros).
* build: Move orc.mak out of build/Arun Raghavan2011-01-311-1/+1
| | | | | That directory is commonly used by developers for out-of-tree builds, so don't keep the Makefile in there.
* build: Remove unnecessary flags in AM_CFLAGSMaarten Bosmans2011-01-311-15/+9
| | | | | | | | The CFLAGS and LIBS of libsamplerate, libspeex and libsndfile are added to the pulse libraries depending on those libraries. Also src/pulse/version.h is generated by configure, so it does not need to go in BUILT_SOURCES. (Slightly tweaked by Colin Guthrie to fix a merge problem relating to BUILT_SOURCES)
* build: Don't include empty Makefile.am in subdirsMaarten Bosmans2011-01-3120-382/+0
|
* build: Generate module symdefs in src/modules directoryMaarten Bosmans2011-01-311-104/+88
| | | | | | | | | | | This will make it possible to remove the empty Makefile.am files. - module-...-symdef.h files are all generated in src/modules, instead of in the subdir of the module. - The default inclusion of src/modules subdirs in AM_CFLAGS can be removed, where necessary (raop) the subdir is included in the specific CFLAGS. - The src/daemon and src/modules directories are always created on make, to facilitate out of tree builds. - AM silent rules are used for the generation of symdef files by m4. - For echo-cancel, keep the build dir include for now (and mkdir it) although limit it to just the echo-cancel module's CFLAGS (Colin Guthrie)
* Merge remote branch 'mkbosmans/rate-adjustment'Colin Guthrie2011-01-313-60/+103
|\
| * module-rtp-recv: Request proper rewind after underrunMaarten Bosmans2011-01-161-1/+3
| |
| * module-rtp-recv: Remove smoother from write indexMaarten Bosmans2011-01-161-21/+3
| | | | | | | | | | It isn't necessary anymore with the new algorithm. The slow adjust of the smoother was even detrimental to the accuracy of the rate estimate.
| * module-rtp-recv: Average the estimated real sample rateMaarten Bosmans2011-01-161-4/+22
| |
| * module-rtp-recv: Use new algorithm for adjusting sample rateMaarten Bosmans2011-01-161-15/+29
| |
| * Limit rate adjustments to small, inaudible jumpsMaarten Bosmans2011-01-163-26/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The same logic is applied to the sample rate adjustments in module-rtp-recv, module-loopback and module-combine: - Each time an adjustment is made, the new rate can differ at most 2‰ from the old rate. Such a step is equal to 3.5 cents (a cent is 1/100th of a semitone) and as 5 cents is generally considered the smallest observable difference in pitch, this results in inaudible adjustments. - The sample rate of the stream can only differ from the rate of the corresponding sink by 25%. As these adjustments are meant to account for very small clock drifts, any large deviation from the base rate suggests something is seriously wrong. - If the calculated rate is within 20Hz of the base rate, set it to the base rate. This saves CPU because no resampling is necessary.
| * module-loopback: Add adjust_time to valid argsMaarten Bosmans2011-01-161-0/+1
| |
* | Fighting rewinds: Reduce calls to handle_seekDavid Henningsson2011-01-311-30/+26
| | | | | | | | | | | | | | | | | | If many small blocks are in queue, handle_seek is being called for every one of them, sometimes causing a rewind. Delay the call until all blocks are handled, then call handle_seek only once. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* | Fighting rewinds: Seek and write data in the same messageDavid Henningsson2011-01-311-8/+12
| | | | | | | | | | | | | | | | Allow a message in the queue to perform both a seek and a post data. For clients that do not use PA_SEEK_RELATIVE (e g gstreamer), this cuts the message count - and sometimes even the rewinds - in half. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* | ratelimit: fix log levels of log suppression messagesLennart Poettering2011-01-3113-18/+19
| | | | | | | | | | | | | | | | | | When logging a suppression message do so on the same log level as the suppressed messages. Cherry picked by Colin Guthrie from ec5a7857127a1b3b9c5517c4a70a9b2c8aab35ca with a couple of additional changes due to extra limiting in master that was not present in stable-queue.
* | Core: Fix incorrect check of return valueScott Reeves2011-01-231-2/+2
| |
* | build: Use MODULE_LIBADD in Makefile.amMaarten Bosmans2011-01-231-84/+86
| |
* | Merge commit 'e4979ab5cff84ef64c88bba3a1b6b4c5e02f7777'Colin Guthrie2011-01-173-10/+16
|\ \
| * | bluetooth: detect when bitpool has changed on sbc codecLuiz Augusto von Dentz2010-12-231-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A2DP spec allow bitpool changes midstream which is why sbc configuration has a range of values for bitpool that the encoder can use and decoder must support. Bitpool changes do not affect the state of encoder/decoder so they don't need to be reinitialize when this happens, so the impact is fairly small, what it does change is the frame length so encoders may change the bitpool to use the link more efficiently.
| * | bluetooth: fix build for libdbus < 1.3Luiz Augusto von Dentz2010-12-231-0/+2
| | |
| * | bluetooth: fix case of profile UUIDs to match what BlueZ usesLuiz Augusto von Dentz2010-12-231-8/+8
| |/
* | tunnel: Fix automatic names when source/sink_name argument is missing.Colin Guthrie2011-01-161-2/+2
| | | | | | | | Spotted by palmerdabbelt via #894
* | client: Don't update smoother while corkedArun Raghavan2011-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents the smoother attached to the stream clock from being updated while the stream is corked, which in turn ensures that once corking is completed, pa_stream_get_time() always returns the same value until the stream is uncorked - i.e., the clock does not advance when the client believes that it will not. The actual call to pa_smoother_put() happens on things like stream suspend/unsuspend, which trigger timing updates. This changes the smoother coefficients, which means that a call to pa_smoother_get() for the same value of 'x' can return different values before and after a timing update.
* | alsa-sink: Don't assume we were able to enable hw-volume or sync-volume (v1.1)Jyri Sarha2011-01-151-21/+21
| | | | | | | | | | This patch also disables mixer callback code if we do not have neither HW-volume or HW-mute.
* | alsa-sink: Fix double use of stringJyri Sarha2011-01-151-6/+8
| |