Colin Guthrie
1fb046536a
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
41e31ab204
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
e596f42f39
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
6510d97315
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
22e299ad3e
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
8fb58e3a90
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
66cf1d1f66
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
2008-10-08 20:32:07 +01:00
Colin Guthrie
20478a4544
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
d423605bd9
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
a0d3582fb1
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
a08d733fd1
Fix svn properties and some minor indentation
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2363 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-10-08 20:32:06 +01:00
Colin Guthrie
27ed970adf
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
405cf720dc
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
ce9a41ef06
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
91edf9eaca
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
6570620cc3
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
fef102e35a
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
48477067ee
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
2008-10-08 20:32:06 +01:00
Colin Guthrie
8c1c565c86
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
2008-10-08 20:32:06 +01:00
Lennart Poettering
068afb3478
define 0dB in PA as maximum amplification
2008-10-08 04:02:10 +02:00
Lennart Poettering
2dfc265483
Merge branch 'flatvol'
2008-10-08 00:15:18 +02:00
Lennart Poettering
37b8c45e2b
query the sink volume outside of the loop because it might be quite expensive
2008-10-08 00:14:54 +02:00
Lennart Poettering
34f6a516b2
use pa_sink_set_volume() for changing the volume
2008-10-08 00:14:25 +02:00
Lennart Poettering
b048ae9f78
check the maximum volume of all sink inputs instead of the average volume to avoid digital amplification in favour of attenuation
2008-10-08 00:13:53 +02:00
Lennart Poettering
404cf74332
some minor reformatting
2008-10-08 00:12:59 +02:00
Lennart Poettering
8bc58cc757
ignore sinks that do not carry decibel information
2008-10-08 00:12:15 +02:00
Lennart Poettering
776c8dec3c
remove $Id$
2008-10-08 00:10:56 +02:00
Lennart Poettering
9f4033d1c4
if a stream comes with now sensible properties attached, use common
...
fallback db entry.
2008-10-08 00:08:51 +02:00
Luiz Augusto von Dentz
3d7b76d159
Unload module-bluetooth-device if the remote device disconnects.
2008-10-07 10:37:57 -03:00
Marc-Andre Lureau
80a79b15df
flat-volume thingy
...
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-07 01:54:35 +02:00
Lennart Poettering
fa93cb71e8
make distcheck pass
2008-10-06 03:35:46 +02:00
Lennart Poettering
f64d6af0b7
Merge commit 'vudentz/master'
2008-10-06 02:28:17 +02:00
Lennart Poettering
5996f59dd5
update module-tunnel for recent protocol changes
2008-10-05 23:02:25 +02:00
Lennart Poettering
a9c1bb3e85
substract the unused record buffer size from the overall size before calculating the space still left for recording
2008-10-04 02:13:39 +02:00
Lennart Poettering
83b1d7a305
get rid of pa_alsa_volume_divide() since we have pa_sw_volume_divide() now
2008-10-04 01:48:13 +02:00
Lennart Poettering
87c8132ce3
increase suspend timeout to 5s so that it is always longer then the default tsched buffer size of 2s
2008-10-04 01:07:38 +02:00
Lennart Poettering
530b95fec5
don't call snd_pcm_drain() when we suspend because that might take awfully long with our long buffer sizes these days
2008-10-04 01:07:08 +02:00
Luiz Augusto von Dentz
fef63d77b4
Fix loading module-bluetooth-device with an invalid parameter.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
0c998b0891
Replace handlers of deprecated Connected signals with new PropertyChanged.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
b205fcc17c
Cleanup module-bluetooth-discover.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
20f68bcc46
Fix Connected signal handler.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
04677cb925
Fix match rule problems.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
0be845f3a9
Remove PropertyChanged signal handler.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
3b427b7014
Add signal handlers for Connected signals.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
443ea47ee0
Add match rules for org.bluez.Headset and org.bluez.AudioSink.
2008-10-03 18:07:07 -03:00
Lennart Poettering
a0f4ffd3e1
make sure we call pa_sink_process_rewind() if a rewind was requested under all circumstances
2008-10-02 03:07:54 +02:00
Lennart Poettering
cf3f80e8b4
when killing gconf helper, loop over EINTR
2008-10-01 23:42:32 +02:00
Lennart Poettering
3853070a21
don't hit an assert if a kernel driver reports invalid dB information, instead just warn the user
2008-10-01 04:15:05 +02:00
Lennart Poettering
5d18b62033
remove useless log message
2008-10-01 03:54:01 +02:00
Lennart Poettering
99acad7782
fix support for ALSA devices which lack dB information
2008-10-01 03:26:45 +02:00