Maarten Bosmans
3c4d43d9dc
pacat: Fail early if the media name cannot be set
...
Otherwise you get an "invalid argument" error from pa_stream_new later.
2011-10-11 22:48:25 +05:30
Lu Guanqun
cef16430d0
pacat: make pacat respond to cork/uncork events
...
Pacat remembers the number of cork requests, and then cork/uncork the stream
accordingly.
With this change, it makes below test script work correctly:
pacat -p --property=media.role="music" <long-sound> &
sleep 2
pacat -p --property=media.role="phone" <short-sound>
wait
Initial idea by Lu Guanqun, but modified by Colin Guthrie (so blame
me if it's broken)
2011-08-29 10:31:46 +01:00
Maarten Bosmans
c5dca7cf2b
More spelling fixes
2011-08-25 11:27:47 +01:00
Maarten Bosmans
b4e938e194
Move i18n.[ch] to src/pulsecore
...
The header is used in files troughout the tree and is not included in the public api,
so it belongs in pulsecore, not in pulse.
2011-08-11 13:23:42 +02:00
Maarten Bosmans
aa7bc322e2
parecord: Automatically detect file format from extension
...
And fix a small bug in pa_sndfile_format_from_string.
2011-06-27 09:59:56 +01:00
Tanu Kaskinen
983d4c238d
pacat: Fix memory leak when draining the context.
2011-03-11 13:37:49 +02:00
Maarten Bosmans
53695b83dc
Get rid of some unused-function compiler warnings
2011-03-02 14:52:46 +00:00
Pierre-Louis Bossart
9b6c84ad6e
AC3 passthrough support
...
Second version after Tanu's feedback
TODO:
- notify client that volume control is disabled
- change sink rate in passthrough mode if needed
- automatic detection of passthrough mode instead of hard
coded profile names
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
2010-08-12 18:20:27 +01:00
Lennart Poettering
0a7fccdb3d
pacat: pass buffer_attr to recording streams too
...
Pointed out by Colin Guthrie.
https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-February/006698.html
2010-02-21 21:09:26 +01:00
Lennart Poettering
d57ba82414
pacat: always fully fulfill write requests
...
Make sure we always fulfill write requests from the server. If we don't
the server won't ask us again and playback will stay stuck.
https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-February/006611.html
2010-02-21 17:47:44 +01:00
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