Commit graph

56 commits

Author SHA1 Message Date
Lennart Poettering
f6f957b53c Revert "pacat: Don't use any buffer attr if we don't set any latency/process time params"
This reverts commit ff2091b2c4.
2010-02-21 17:40:44 +01:00
Colin Guthrie
ff2091b2c4 pacat: Don't use any buffer attr if we don't set any latency/process time params 2010-02-11 23:33:19 +00:00
Lennart Poettering
fb55798a3e pacat: allow configuration of latency in msec 2010-02-09 22:44:30 +00:00
Lennart Poettering
65e7bc18a9 use cloexec wrappers wherever applicable 2009-10-30 03:32:38 +01:00
Lennart Poettering
1a6974a1e2 pacat: use fully automatic buffer sizes if possible 2009-09-17 01:22:48 +02:00
Lennart Poettering
b51f5e58cc pacat: don't convert stream name twice (llvm-clang-analyzer) 2009-09-08 23:54:31 +02:00
Lennart Poettering
f5046759cd llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes 2009-09-08 23:46:23 +02:00
Lennart Poettering
b2606cf641 i18n: move \r out of translatable string
https://bugzilla.redhat.com/show_bug.cgi?id=521552
2009-09-07 23:34:31 +02:00
Lennart Poettering
a81244a726 pacat: use zero-copy write calls when playing audio file 2009-07-23 20:01:40 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Lennart Poettering
5c10b84e0f sndfile: big rework of libsndfile interfacing code
This adds proper channel map handling when reading/writing audio files.
This allows surround .WAV files to be played with the right channel
setup automatically.

This also merges paplay into pacat and adds recording into formatted
files to pacat.
2009-05-26 00:05:28 +02:00
Lennart Poettering
2d94c93957 pacat: add missing newline 2009-04-14 01:03:34 +02:00
Lennart Poettering
aa1ad0df18 in verbose mode log buffer attr changes 2009-04-01 00:35:37 +02:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Marc-André Lureau
67b0baecc4 pacat: remove unused variable 2009-02-19 04:55:11 +01:00
Lennart Poettering
823431e447 allow sending meta/policy events to clients 2009-02-12 03:18:05 +01:00
Lennart Poettering
b9e96e00cf for record streams fill in the latency as the fragsize 2009-01-12 19:34:12 +01:00
Lennart Poettering
b6804eefea Make sure we don't drop any data on the client side 2009-01-10 03:33:27 +01:00
Lennart Poettering
6ff9c1fb62 don't set the volume of pacat unless it is explicitly set 2008-10-22 22:48:53 +02:00
Lennart Poettering
a609e4a700 check for errors returned by pa_context_connect() 2008-09-05 01:31:39 +02:00
Lennart Poettering
3f6f13f902 use pa_channel_map_compatible() where applicable 2008-09-05 01:31:17 +02:00
Lennart Poettering
456284918a update documentation and help texts for s32le/s32be sample types 2008-09-05 00:39:36 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00
Lennart Poettering
f1d2bf8408 add i18n support 2008-08-06 18:54:13 +02:00
Lennart Poettering
7755f759aa use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0 2008-06-27 00:34:17 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
045c1d602d merge glitch-free branch back into trunk
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
14a9b80afb - Check process name when dealing with PID files
- Add new PA_STREAM_FIX_CHANNELS, FIX_RATE, FIX_FORMAT, DONT_MOVE, VARIABLE_RATES to pa_sream_flags_t adn implement it
- Expose those flags in pacat
- Add notifications about device suspend/resume to the protocol and expose them in libpulse
- Allow changing of buffer_attr during playback
- allow disabling for remixing globally
- hookup polkit support


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2067 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-21 01:30:40 +00:00
Pierre Ossman
06211b7c8f Add copyright notices to all relevant files. (based on svn log)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13 15:35:19 +00:00
Pierre Ossman
521daf6f0a Huge trailing whitespace cleanup. Let's keep the tree pure from here on,
mmmkay?


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-01-04 13:43:45 +00:00
Lennart Poettering
7f93d08d40 bump API and protocol version. Return PA_ERR_NOTSUPPORTED if pa_context_move_sink_input_by_*()is called for servers that don't support it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1179 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-01 21:04:43 +00:00
Lennart Poettering
b325e07c73 handle EOF correctly if it is read before the stream was created
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1164 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-07-29 15:02:24 +00:00
Lennart Poettering
10b5e997d7 replace a few remaining uppercase "Polypaudio" occurences with "PulseAudio"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1036 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 22:11:49 +00:00
Lennart Poettering
f44ba09265 big s/polyp/pulse/g
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 21:53:48 +00:00
Pierre Ossman
6aeaaf94a8 Returned buffer attr is const.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@979 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-26 07:24:47 +00:00
Lennart Poettering
7d975345a5 * add new API function pa_stream_get_buffer_attr().
* modify pacat.c to make use of that new API
* extend protocol to allow transfer of the necessary information
* update protocol version accordingly


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@976 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-25 23:20:28 +00:00
Lennart Poettering
53a285e756 fix include line for "core-util.h"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@923 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 20:44:55 +00:00
Lennart Poettering
fbdb063513 replace memory allocation function calls with pa_xXXXX()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@916 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 19:26:54 +00:00
Lennart Poettering
c2c8539201 bump version number to 0.9
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@886 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 18:28:03 +00:00
Lennart Poettering
cfb082a67c take the filename specified on the command line as default stream name
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@863 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 16:17:17 +00:00
Lennart Poettering
d78e466a28 fix volume range printed on --help
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@808 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:27:59 +00:00
Lennart Poettering
c3cc14153a allow specifying the channel map to use on the command line
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@805 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:07:33 +00:00
Lennart Poettering
06bd27b043 when storing recording data in file, create file with proper access rights
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@693 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 23:55:21 +00:00
Lennart Poettering
4a8d318549 yet anotrher fix for slow links
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@692 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 23:19:07 +00:00
Lennart Poettering
0af582a8d6 small fix to deal properly with slow links
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@691 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 23:12:54 +00:00
Lennart Poettering
d42794206d beefup pacat a little:
* when -v is passed, show current playback time and latency
* modify SIGUSR1 behaviour to show only playback time and latency


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@687 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-12 17:18:24 +00:00
Lennart Poettering
93327083d9 when using record mode, allow file to save data to to be passed on the command line
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@675 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-10 19:42:14 +00:00
Lennart Poettering
b8a729a00f * update docs for reworked latency API
* rename pa_latency_info to pa_timing_info, since that describes better what it is. Most people will only use pa_stream_get_time() anyway


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@651 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-07 01:29:33 +00:00
Lennart Poettering
53a0056cdf update pacat.c for new latency API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@649 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-07 00:25:05 +00:00
Lennart Poettering
a10257d680 fix pacat
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@550 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-21 01:22:42 +00:00