]> code.delx.au - pulseaudio/log
pulseaudio
15 years agodon't set the volume of pacat unless it is explicitly set
Lennart Poettering [Wed, 22 Oct 2008 20:48:53 +0000 (22:48 +0200)]
don't set the volume of pacat unless it is explicitly set

15 years agoupdate map file
Lennart Poettering [Wed, 22 Oct 2008 00:22:19 +0000 (02:22 +0200)]
update map file

15 years agoreorder setting of AM_CFLAGS a bit
Lennart Poettering [Tue, 21 Oct 2008 20:05:13 +0000 (22:05 +0200)]
reorder setting of AM_CFLAGS a bit

15 years agomake the debug trap macro a proper macro in macro.h
Lennart Poettering [Tue, 21 Oct 2008 20:04:22 +0000 (22:04 +0200)]
make the debug trap macro a proper macro in macro.h

15 years agoTry to catch certain driver errors
Lennart Poettering [Tue, 21 Oct 2008 18:00:36 +0000 (20:00 +0200)]
Try to catch certain driver errors

... by verifying return values of snd_pcm_avail_update() and
snd_pcm_begin_mmap() for their sanenness.

15 years agomake log meta, time, backtrace configurable using command line
Lennart Poettering [Tue, 21 Oct 2008 17:16:49 +0000 (19:16 +0200)]
make log meta, time, backtrace configurable using command line

15 years agoMake log meta, time, backtrace configurable using config file
Lennart Poettering [Tue, 21 Oct 2008 17:15:41 +0000 (19:15 +0200)]
Make log meta, time, backtrace configurable using config file

15 years agosupport changing logging parameters during runtime using the CLI
Lennart Poettering [Tue, 21 Oct 2008 17:14:07 +0000 (19:14 +0200)]
support changing logging parameters during runtime using the CLI

15 years agoSupport showing a backtrace on log messages
Lennart Poettering [Tue, 21 Oct 2008 17:13:15 +0000 (19:13 +0200)]
Support showing a backtrace on log messages

15 years agoinclude log.h near the end so that macro.h can be included in log.h and defines pa_bo...
Lennart Poettering [Tue, 21 Oct 2008 16:40:01 +0000 (18:40 +0200)]
include log.h near the end so that macro.h can be included in log.h and defines pa_bool_t properly

15 years agoadd pa_config_parse_unsigned()
Lennart Poettering [Tue, 21 Oct 2008 16:38:55 +0000 (18:38 +0200)]
add pa_config_parse_unsigned()

15 years agofix arguments to format string
Lennart Poettering [Tue, 21 Oct 2008 16:28:19 +0000 (18:28 +0200)]
fix arguments to format string

15 years agoconvert argument to boolean int in PA_UNLIKELY, too
Lennart Poettering [Tue, 21 Oct 2008 16:27:25 +0000 (18:27 +0200)]
convert argument to boolean int in PA_UNLIKELY, too

15 years agofix return value of pa_frame_aligned()
Lennart Poettering [Tue, 21 Oct 2008 16:26:24 +0000 (18:26 +0200)]
fix return value of pa_frame_aligned()

15 years agoimplement may_move_to for ladspa/remap sinks
Lennart Poettering [Tue, 21 Oct 2008 16:25:26 +0000 (18:25 +0200)]
implement may_move_to for ladspa/remap sinks

15 years agoadd new virtual function may_move_to to sink inputs/source outputs to allow modules...
Lennart Poettering [Tue, 21 Oct 2008 16:24:45 +0000 (18:24 +0200)]
add new virtual function may_move_to to sink inputs/source outputs to allow modules to forbid certain connections

15 years agofix invalid validity check
Lennart Poettering [Tue, 21 Oct 2008 16:22:28 +0000 (18:22 +0200)]
fix invalid validity check

15 years agoMake missing git-changelog.perl non-fatal
Lennart Poettering [Mon, 20 Oct 2008 18:33:28 +0000 (20:33 +0200)]
Make missing git-changelog.perl non-fatal

15 years agoFix spelling of privilige
Lennart Poettering [Sun, 19 Oct 2008 20:25:58 +0000 (22:25 +0200)]
Fix spelling of privilige

15 years agoalways check for libtool prefix binary name to avoid confusion when using both instal...
Lennart Poettering [Sun, 19 Oct 2008 20:24:18 +0000 (22:24 +0200)]
always check for libtool prefix binary name to avoid confusion when using both installed and run-from-build-tree versions of PA in parallel

15 years agoMerge commit 'vudentz/master'
Lennart Poettering [Mon, 13 Oct 2008 17:55:11 +0000 (19:55 +0200)]
Merge commit 'vudentz/master'

15 years agoFix two typos that broke tunnels
Colin Guthrie [Sat, 11 Oct 2008 17:20:06 +0000 (18:20 +0100)]
Fix two typos that broke tunnels

Signed-off-by: Lennart Poettering <lennart@poettering.net>
15 years agoproperly remove dbus matches an filters when unloading m-b-d
Lennart Poettering [Mon, 13 Oct 2008 17:52:02 +0000 (19:52 +0200)]
properly remove dbus matches an filters when unloading m-b-d

15 years agocorrectly load module-flat-volume instead of module-flat-volumes
Lennart Poettering [Mon, 13 Oct 2008 17:28:14 +0000 (19:28 +0200)]
correctly load module-flat-volume instead of module-flat-volumes

15 years agoFix possible invalid read while attempting to load module-bluetooth-device.
Luiz Augusto von Dentz [Thu, 9 Oct 2008 22:31:43 +0000 (19:31 -0300)]
Fix possible invalid read while attempting to load module-bluetooth-device.

15 years agoMerge commit 'coling/airtunes-0.9.13'
Lennart Poettering [Wed, 8 Oct 2008 21:03:16 +0000 (23:03 +0200)]
Merge commit 'coling/airtunes-0.9.13'

15 years agoFix a potential C++/C99 ism, add a log message on error condition
Colin Guthrie [Wed, 8 Oct 2008 20:56:12 +0000 (22:56 +0200)]
Fix a potential C++/C99 ism, add a log message on error condition

Signed-off-by: Lennart Poettering <lennart@poettering.net>
15 years agoFollow master change r34dd4a and fix shutdown when --disallow-module-loading=1 is...
Colin Guthrie [Fri, 22 Aug 2008 08:51:41 +0000 (09:51 +0100)]
Follow master change r34dd4a and fix shutdown when --disallow-module-loading=1 is passed

15 years agoModularise the RAOP stuff that requires OpenSSL and make it optional at compile time
Colin Guthrie [Sun, 3 Aug 2008 21:46:21 +0000 (22:46 +0100)]
Modularise the RAOP stuff that requires OpenSSL and make it optional at compile time

15 years agoRemove $Id$ lines left over from SVN
Colin Guthrie [Sun, 3 Aug 2008 19:56:21 +0000 (20:56 +0100)]
Remove $Id$ lines left over from SVN

15 years agoMake module-raop-sink/discover work with 0.9.11 API
Colin Guthrie [Sun, 3 Aug 2008 19:52:35 +0000 (20:52 +0100)]
Make module-raop-sink/discover work with 0.9.11 API

15 years agoImplement hardware volume control.
Colin Guthrie [Thu, 3 Jul 2008 22:49:01 +0000 (23:49 +0100)]
Implement hardware volume control.
This allows near instant change of volume when controlling the hardware but the stream volume still suffers from a sizable delay.

15 years agoImplement a set volume function to expose this capability to higher layers
Colin Guthrie [Thu, 3 Jul 2008 22:47:34 +0000 (23:47 +0100)]
Implement a set volume function to expose this capability to higher layers

15 years agoUse the new pa_namereg_make_valid_name() function.
Colin Guthrie [Tue, 24 Jun 2008 22:57:37 +0000 (23:57 +0100)]
Use the new pa_namereg_make_valid_name() function.

15 years agoAdd Lennart back in to Copyright as I copied these files from his originals and was...
Colin Guthrie [Wed, 11 Jun 2008 23:01:07 +0000 (23:01 +0000)]
Add Lennart back in to Copyright as I copied these files from his originals and was a bit overzealous in changing things ;)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2520 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAutomatic discovery of airtunes devices via Bonjour/Avahi.
Colin Guthrie [Wed, 11 Jun 2008 22:44:09 +0000 (22:44 +0000)]
Automatic discovery of airtunes devices via Bonjour/Avahi.

This also does some minor reordering in the Makefile.am
Refs #69

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2519 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoMinor correction of help text
Colin Guthrie [Wed, 11 Jun 2008 22:43:27 +0000 (22:43 +0000)]
Minor correction of help text

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2518 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoStill send silence when we are not doing anything else, but also flush the buffers...
Colin Guthrie [Wed, 11 Jun 2008 00:02:10 +0000 (00:02 +0000)]
Still send silence when we are not doing anything else, but also flush the buffers correctly upon recovery from suspension.

Close the RTP socket correctly after passing messages about.
When not sending silence, the RTSP socket will be closed after some period of inactivity. I'm not sure why this is.
Sending silence keeps things working and with the flushes after suspension we now get a better latency. As this relies on the auto-suspend feature, it's not exactly ideal.
Typical latencies are currently about 3s which makes it more or less usuable for listening to music.
If the connection is disconnected, it will reconnect but I've found that the second connection is silent. Hopefully the silence will prevent the first connection dropping.
Refs #69

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2504 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd some new public API functions to connect and flush.
Colin Guthrie [Tue, 10 Jun 2008 23:55:58 +0000 (23:55 +0000)]
Add some new public API functions to connect and flush.

This allows us to reconnect upon disconnection but this has thus far proved unreliable.
We no longer close the socket. We leave this to the module thread to do the closing.
We can also flush the remote buffer now.
Refs #69

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2503 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoChange the API of the RTSP client a bit.
Colin Guthrie [Tue, 10 Jun 2008 23:49:35 +0000 (23:49 +0000)]
Change the API of the RTSP client a bit.

* Store the mainloop, hostname and port internally on construction
* This should allow use to easily reconnect if disconnected although this has thus far proved unreliable.
The changes look like more than they are due to moving a function around.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2502 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoRemove unneeded headers accidentially added in r2500.
Colin Guthrie [Mon, 9 Jun 2008 22:01:23 +0000 (22:01 +0000)]
Remove unneeded headers accidentially added in r2500.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2501 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd seq and rtptime params to record/flush with a view to using these for timing...
Colin Guthrie [Mon, 9 Jun 2008 21:59:41 +0000 (21:59 +0000)]
Add seq and rtptime params to record/flush with a view to using these for timing and device suspension

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2500 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoMinor update to copywrite (I still plan to replace this completely but in the mean...
Colin Guthrie [Mon, 9 Jun 2008 21:59:00 +0000 (21:59 +0000)]
Minor update to copywrite (I still plan to replace this completely but in the mean time....)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2499 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoFix up a couple of values related to encoding overhead.
Colin Guthrie [Tue, 3 Jun 2008 23:07:48 +0000 (23:07 +0000)]
Fix up a couple of values related to encoding overhead.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2497 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoA few related changes:
Colin Guthrie [Mon, 26 May 2008 23:43:51 +0000 (23:43 +0000)]
A few related changes:

* Change the encode_sample routine to simply return normal memchunks allocated from the mempool.
* unref the memchunks returned from encode_sample when we are done with them.
* Create an encoded 'silence' sample and play this at all times to prevent hangup and to 'hog' the airtunes device

This now works and can be used as a regular sink albeit with a constant latency of about 8 seconds :s

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2485 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoKeep track of the memblock pointer internally and do not rely on subsequent calls...
Colin Guthrie [Mon, 26 May 2008 23:02:30 +0000 (23:02 +0000)]
Keep track of the memblock pointer internally and do not rely on subsequent calls to pass it back in for unref'ing

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2484 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoSet forgotten keyword property
Colin Guthrie [Mon, 26 May 2008 21:10:08 +0000 (21:10 +0000)]
Set forgotten keyword property

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2483 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoSet the send buffer size to prevent rendering silence in amongst our good data (this...
Colin Guthrie [Mon, 26 May 2008 21:05:53 +0000 (21:05 +0000)]
Set the send buffer size to prevent rendering silence in amongst our good data (this should be more sophisticated but that can wait for a glitch-free port)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2482 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoMove the encoding loop around a bit such that it does not grab the data and keep...
Colin Guthrie [Mon, 26 May 2008 21:04:45 +0000 (21:04 +0000)]
Move the encoding loop around a bit such that it does not grab the data and keep it for the next loop iteration.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2481 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoDo tidy up on disconnection.
Colin Guthrie [Sun, 11 May 2008 17:02:19 +0000 (17:02 +0000)]
Do tidy up on disconnection.

Only clear IO related stuff if this free() was triggered deliberatly (i.e. not by server side disconnect)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2411 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoDo not prefix internal function rtsp_exec.
Colin Guthrie [Sun, 11 May 2008 16:40:26 +0000 (16:40 +0000)]
Do not prefix internal function rtsp_exec.

Change port to be 16 bits
Do not free stuff on closure as this happens further up the stack.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2410 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoDon't try to free stack variables.
Colin Guthrie [Sun, 11 May 2008 16:38:33 +0000 (16:38 +0000)]
Don't try to free stack variables.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2409 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agounref the raw data memblock before requesting more data.
Colin Guthrie [Sun, 11 May 2008 15:43:56 +0000 (15:43 +0000)]
unref the raw data memblock before requesting more data.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2408 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoSome misc fixes. consts, base64 optimisation (not that it will be with us long anyway...
Colin Guthrie [Sun, 11 May 2008 15:34:37 +0000 (15:34 +0000)]
Some misc fixes. consts, base64 optimisation (not that it will be with us long anyway), and c comments

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2407 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoFix up IPv6 address format to enclose it in []
Colin Guthrie [Sun, 11 May 2008 15:12:20 +0000 (15:12 +0000)]
Fix up IPv6 address format to enclose it in []

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2406 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoChange suggested by Lennart. Do not return a memchunk, instead pass in the pointer.
Colin Guthrie [Sun, 11 May 2008 15:06:14 +0000 (15:06 +0000)]
Change suggested by Lennart. Do not return a memchunk, instead pass in the pointer.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2405 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoVarious changes suggested by Lennart.
Colin Guthrie [Sun, 11 May 2008 14:57:30 +0000 (14:57 +0000)]
Various changes suggested by Lennart.

Store the core* rather than just the mainloop as we can reuse the mempool without passing it in as an argument.
const'ify and deconst'ify some vars

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2404 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoListen to the on_close callback. This still causes asserts in the mainloop, so this...
Colin Guthrie [Sun, 11 May 2008 14:19:41 +0000 (14:19 +0000)]
Listen to the on_close callback. This still causes asserts in the mainloop, so this is not a complete solution

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2403 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a new callback structure to propigate when the RTSP connection dies
Colin Guthrie [Sun, 11 May 2008 14:18:48 +0000 (14:18 +0000)]
Add a new callback structure to propigate when the RTSP connection dies

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2402 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoMove the ownership of the encoded data memchunk into the raop_client.
Colin Guthrie [Sun, 11 May 2008 13:35:01 +0000 (13:35 +0000)]
Move the ownership of the encoded data memchunk into the raop_client.

This does not seem to fix the pool full messages so I'll have to try and suss that out.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2400 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoDo not assert on NULL values of s. This means the connection was closed. This change...
Colin Guthrie [Sun, 11 May 2008 13:32:09 +0000 (13:32 +0000)]
Do not assert on NULL values of s. This means the connection was closed. This change somehow kills the mainloop with an assert, so I need to sort that out.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2399 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoA very rough first version of the sink.
Colin Guthrie [Sun, 11 May 2008 12:21:32 +0000 (12:21 +0000)]
A very rough first version of the sink.

I can actually play music to my airport now (woot).
Still very rough round the edges and I need to handle disconnects etc. but it's all good progress :)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2398 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd more libraries to librtp now that it's doing a lot more.
Colin Guthrie [Sun, 11 May 2008 12:20:14 +0000 (12:20 +0000)]
Add more libraries to librtp now that it's doing a lot more.

This currently hacks in -lssl rather than writing a configure hook to detect it as I want to replace this with nss before official release.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2397 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoProperly duplicate the hostname passed in on connect.
Colin Guthrie [Sun, 11 May 2008 12:18:36 +0000 (12:18 +0000)]
Properly duplicate the hostname passed in on connect.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2396 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoCombine pa_raop_client_new and pa_raop_client_connect (no point in having them separate)
Colin Guthrie [Sat, 10 May 2008 23:01:37 +0000 (23:01 +0000)]
Combine pa_raop_client_new and pa_raop_client_connect (no point in having them separate)

Convert the iochannel to an fd and do not call a pa_iochannel_cb_t callback but rather trigger the callback on connection and pass the fd.
Change pa_raop_client_send_sample to pa_raop_client_encode_sample and work with memchunks.
Fix a subtle size bug in the bit writer that techincally isn't triggered in normal operation.
Clean up the _free function to actually free stuff.
Do the actual ALAC encoding.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2394 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoRename rtsp.{c,h} to rtsp_client.{c,h}.
Colin Guthrie [Wed, 7 May 2008 01:23:16 +0000 (01:23 +0000)]
Rename rtsp.{c,h} to rtsp_client.{c,h}.

Renate pa_rtsp_context to pa_rtsp_client.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2376 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoWrap the io_callback to ensure that all data is written before asking for more.
Colin Guthrie [Wed, 7 May 2008 01:10:31 +0000 (01:10 +0000)]
Wrap the io_callback to ensure that all data is written before asking for more.

Fix the length type for send_sample (restrict to 16bit value)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2374 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoUse a more stateful response parser.
Colin Guthrie [Wed, 7 May 2008 00:35:10 +0000 (00:35 +0000)]
Use a more stateful response parser.

This makes things fully asyncronous.
Some of the continuation headerlist stuff could be moved to headerlist for neatness, but this is OK for now.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2373 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a pa_iochannel callback for when the RAOP connection connects.
Colin Guthrie [Tue, 6 May 2008 18:39:09 +0000 (18:39 +0000)]
Add a pa_iochannel callback for when the RAOP connection connects.

Properly handle the sequence of events that establish a connection.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2369 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a function for packing bits into a byte buffer. This will be needed when encoding...
Colin Guthrie [Tue, 6 May 2008 00:28:04 +0000 (00:28 +0000)]
Add a function for packing bits into a byte buffer. This will be needed when encoding the audio data in ALAC format.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2368 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoSome minor tidyup to remove code now in raop client. Still nowhere near functional.
Colin Guthrie [Tue, 6 May 2008 00:25:37 +0000 (00:25 +0000)]
Some minor tidyup to remove code now in raop client. Still nowhere near functional.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2367 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a skeleton raop client which builds on the rtsp client.
Colin Guthrie [Tue, 6 May 2008 00:20:35 +0000 (00:20 +0000)]
Add a skeleton raop client which builds on the rtsp client.

It still requires a socket client and callback system to be added before it will be functional.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2366 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoMove closer to an asynchronous structure (still some parsing code to be converted).
Colin Guthrie [Tue, 6 May 2008 00:17:17 +0000 (00:17 +0000)]
Move closer to an asynchronous structure (still some parsing code to be converted).

Move type definition into .c file to keep it private
Add more utility functions to add/remove headers and return the serverport now the structure is private.
This commit will break the test application but I will fix that in due course

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2365 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoTrivial change to allocate memory using pulse methods.
Colin Guthrie [Tue, 6 May 2008 00:14:33 +0000 (00:14 +0000)]
Trivial change to allocate memory using pulse methods.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2364 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoFix svn properties and some minor indentation
Colin Guthrie [Sun, 4 May 2008 01:26:29 +0000 (01:26 +0000)]
Fix svn properties and some minor indentation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2363 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoConvert the return values to fit with the rest of pulse 0 == success, < 0 == failure
Colin Guthrie [Sun, 4 May 2008 01:01:52 +0000 (01:01 +0000)]
Convert the return values to fit with the rest of pulse 0 == success, < 0 == failure

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2362 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoConvert to using pa_socket_client rather than using blocking IO.
Colin Guthrie [Sun, 4 May 2008 00:43:31 +0000 (00:43 +0000)]
Convert to using pa_socket_client rather than using blocking IO.

This change requires a reference to the mainloop api be passed during initial connection.
In addition, the passing in of the session id during connect has been deprecated. A new function pa_rtsp_set_url has been added to allow the URL to be set by external code. The concept of sid is something specific to raop, not to the rtsp client.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2360 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoUse _free rather than _destroy so as not to mix naming conventions.
Colin Guthrie [Fri, 2 May 2008 09:49:28 +0000 (09:49 +0000)]
Use _free rather than _destroy so as not to mix naming conventions.

Convert C++ comments to C.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2349 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoUse pa_sprintf_malloc to do simple concatenation rather than using the higher overhea...
Colin Guthrie [Fri, 2 May 2008 09:47:09 +0000 (09:47 +0000)]
Use pa_sprintf_malloc to do simple concatenation rather than using the higher overhead of pa_strbuf

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2348 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoStart the raop sink. It's based on pipe sink and isn't anywhere near finished. It...
Colin Guthrie [Thu, 1 May 2008 23:51:45 +0000 (23:51 +0000)]
Start the raop sink. It's based on pipe sink and isn't anywhere near finished. It does however compile.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2335 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a simple base64 library that will be used by the sink
Colin Guthrie [Thu, 1 May 2008 23:43:34 +0000 (23:43 +0000)]
Add a simple base64 library that will be used by the sink

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2334 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a RTSP client impelmentation.
Colin Guthrie [Thu, 1 May 2008 23:40:19 +0000 (23:40 +0000)]
Add a RTSP client impelmentation.

I still need to adapt the header reading to move the concatenation code to the headerlist lib

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2333 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agoAdd a small lib to interpret and produce headers as used in http style requests.
Colin Guthrie [Thu, 1 May 2008 23:35:24 +0000 (23:35 +0000)]
Add a small lib to interpret and produce headers as used in http style requests.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2332 fefdeb5f-60dc-0310-8127-8f9354f1896f

15 years agodefine 0dB in PA as maximum amplification
Lennart Poettering [Wed, 8 Oct 2008 02:02:10 +0000 (04:02 +0200)]
define 0dB in PA as maximum amplification

15 years agoenable flat volumes by default
Lennart Poettering [Wed, 8 Oct 2008 00:00:53 +0000 (02:00 +0200)]
enable flat volumes by default

15 years agoMerge branch 'flatvol'
Lennart Poettering [Tue, 7 Oct 2008 22:15:18 +0000 (00:15 +0200)]
Merge branch 'flatvol'

15 years agoquery the sink volume outside of the loop because it might be quite expensive
Lennart Poettering [Tue, 7 Oct 2008 22:14:54 +0000 (00:14 +0200)]
query the sink volume outside of the loop because it might be quite expensive

15 years agouse pa_sink_set_volume() for changing the volume
Lennart Poettering [Tue, 7 Oct 2008 22:14:25 +0000 (00:14 +0200)]
use pa_sink_set_volume() for changing the volume

15 years agocheck the maximum volume of all sink inputs instead of the average volume to avoid...
Lennart Poettering [Tue, 7 Oct 2008 22:13:53 +0000 (00:13 +0200)]
check the maximum volume of all sink inputs instead of the average volume to avoid digital amplification in favour of attenuation

15 years agosome minor reformatting
Lennart Poettering [Tue, 7 Oct 2008 22:12:59 +0000 (00:12 +0200)]
some minor reformatting

15 years agoignore sinks that do not carry decibel information
Lennart Poettering [Tue, 7 Oct 2008 22:12:15 +0000 (00:12 +0200)]
ignore sinks that do not carry decibel information

15 years agoremove $Id$
Lennart Poettering [Tue, 7 Oct 2008 22:10:56 +0000 (00:10 +0200)]
remove $Id$

15 years agoadd a comment that pa_sink_input_set_volume and module-flat-volume.c are related
Lennart Poettering [Tue, 7 Oct 2008 22:10:01 +0000 (00:10 +0200)]
add a comment that pa_sink_input_set_volume and module-flat-volume.c are related

15 years agoif a stream comes with now sensible properties attached, use common
Lennart Poettering [Tue, 7 Oct 2008 22:08:51 +0000 (00:08 +0200)]
if a stream comes with now sensible properties attached, use common
fallback db entry.

15 years agoafter calling PA_CORE_HOOK_SINK_SET_VOLUME hook, check again whether the volume changed
Lennart Poettering [Tue, 7 Oct 2008 20:47:32 +0000 (22:47 +0200)]
after calling PA_CORE_HOOK_SINK_SET_VOLUME hook, check again whether the volume changed

15 years agoadditional validity checks
Lennart Poettering [Tue, 7 Oct 2008 20:47:01 +0000 (22:47 +0200)]
additional validity checks

15 years agoif the channel map was modified due to PA_SINK_INPUT_FIX_CHANNELS, remap the specifie...
Lennart Poettering [Tue, 7 Oct 2008 20:46:18 +0000 (22:46 +0200)]
if the channel map was modified due to PA_SINK_INPUT_FIX_CHANNELS, remap the specified volume properly

15 years agouse pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel...
Lennart Poettering [Tue, 7 Oct 2008 20:45:37 +0000 (22:45 +0200)]
use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel map for sink inputs/source outputs in case no map is specified

15 years agomodernize a few checks
Lennart Poettering [Tue, 7 Oct 2008 20:44:43 +0000 (22:44 +0200)]
modernize a few checks

15 years agowhen the volume is changed make sure we send out a subscription event
Lennart Poettering [Tue, 7 Oct 2008 20:43:00 +0000 (22:43 +0200)]
when the volume is changed make sure we send out a subscription event