summaryrefslogtreecommitdiffstats
path: root/src/utils/padsp.c
Commit message (Collapse)AuthorAgeFilesLines
* implement a few more ioctl()s, including a subset of SNDCTL_DSP_GETOPTR. ↵Lennart Poettering2006-09-061-5/+72
| | | | | | Just enough to make JavaSound work. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1373 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Merge FreeBSD compatibility patch (from Flameeyes)Lennart Poettering2006-09-021-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1359 fefdeb5f-60dc-0310-8127-8f9354f1896f
* work around bug in firefox which apparently misuses access() as NULL pointer ↵Lennart Poettering2006-08-311-0/+7
| | | | | | test. Original patch by "alon". (Closes #27) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1352 fefdeb5f-60dc-0310-8127-8f9354f1896f
* We need to have a callback when changing volume or we might deadlock.Pierre Ossman2006-08-301-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1345 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make pulseaudio compile again on FreeBSD (patch from Diego "Flameeyes" Petteno)Lennart Poettering2006-07-161-6/+52
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1096 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Don't call pa_path_get_filename() anymore since it is implicitly called by ↵Lennart Poettering2006-07-141-1/+1
| | | | | | pa_get_binary_name() anyway git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1078 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix handling of the io flags in duplex mode.Pierre Ossman2006-06-201-17/+21
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1048 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Warn when applications use SNDCTL_DSP_GET[IO]PTR even when they shouldn't.Pierre Ossman2006-06-201-1/+10
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1047 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Make fix_metrics() exit early so that it doesn't spam the output needlessly.Pierre Ossman2006-06-201-0/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1046 fefdeb5f-60dc-0310-8127-8f9354f1896f
* s/POLYP/PULSE/gLennart Poettering2006-06-191-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1041 fefdeb5f-60dc-0310-8127-8f9354f1896f
* replace a few remaining uppercase "Polypaudio" occurences with "PulseAudio"Lennart Poettering2006-06-191-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1036 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-7/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Handle clients that just want to set fragment size (and not count).Pierre Ossman2006-06-191-1/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1030 fefdeb5f-60dc-0310-8127-8f9354f1896f
* /dev/dsp should default to U8, not mulaw.Pierre Ossman2006-06-161-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1023 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Creating a stream might take some time, so check that it's in the right statePierre Ossman2006-06-161-2/+2
| | | | | | | before transferring data. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1022 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Record support.Pierre Ossman2006-06-161-132/+435
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1021 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Make debug output in padsp a bit less verbose. Specifying -d twice will givePierre Ossman2006-06-151-117/+141
| | | | | | | original output. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1018 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Catch the access() system call as some applications do this to test if theyPierre Ossman2006-06-131-0/+28
| | | | | | | can open /dev/dsp. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1016 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix the fix_metrics() function so that we don't get a tiny buffer by default.Pierre Ossman2006-05-261-6/+16
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@981 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix typos.Pierre Ossman2006-05-261-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@980 fefdeb5f-60dc-0310-8127-8f9354f1896f
* really fix a superfluous warning when building padsp.cLennart Poettering2006-05-251-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@973 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * split pa_cstrerror() into its own file polypcore/core-error.[ch]Lennart Poettering2006-05-251-2/+2
| | | | | | | | * fix building of padsp * remove a warning when compiling padsp.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@972 fefdeb5f-60dc-0310-8127-8f9354f1896f
* read stream and client name from $PADSP_STREAM_NAME resp. ↵Lennart Poettering2006-05-251-4/+17
| | | | | | $PADSP_CLIENT_NAME, if available git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@965 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support to disable emulation of /dev/dsp,/dev/mixer,/dev/sndstat ↵Lennart Poettering2006-05-251-3/+58
| | | | | | selectively by either passing an environment variable or by defining a symbol __padsp_disable__ in the process git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@964 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix evil, evil typo that cause all gtk2 based apps to crashLennart Poettering2006-05-251-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@963 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * issue volume updates syncrhonouslyLennart Poettering2006-05-251-5/+18
| | | | | | | * correct channel order of OSS volumes (swap left,right) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@962 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix warnings.Pierre Ossman2006-05-241-7/+14
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@959 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix stray \Pierre Ossman2006-05-241-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@957 fefdeb5f-60dc-0310-8127-8f9354f1896f
* implement a /dev/mixer interfaceLennart Poettering2006-05-241-25/+261
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@956 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix playback of small sound filesLennart Poettering2006-05-241-2/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@955 fefdeb5f-60dc-0310-8127-8f9354f1896f
* implement emulation of /dev/sndstatLennart Poettering2006-05-231-15/+102
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@954 fefdeb5f-60dc-0310-8127-8f9354f1896f
* - use pthread_atfork() to disable open sound streams in the child after a fork.Lennart Poettering2006-05-231-6/+122
| | | | | | | | | | | Obviusly sound won't work in child process but at least we don't leak fds from the parent. Now any operation on the device fd in the child will result in an EBADF error, which seems somewhat clean to me. - flush our unix socket properly on RESET ioctl git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@953 fefdeb5f-60dc-0310-8127-8f9354f1896f
* pass the binary name as client name to polypaudioLennart Poettering2006-05-231-1/+13
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@952 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Cast size_t to long to be more compatible with 64-bit systems.Pierre Ossman2006-05-231-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@951 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new padsp utility: a $LD_PRELOAD wrapper for using the OSS API with ↵Lennart Poettering2006-05-231-0/+1284
polypaudio git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@950 fefdeb5f-60dc-0310-8127-8f9354f1896f