summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * Minor update to copywrite (I still plan to replace this completely but in ↵Colin Guthrie2008-10-081-1/+2
| | | | | | | | | | | | the mean time....) git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2499 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Fix up a couple of values related to encoding overhead.Colin Guthrie2008-10-081-2/+2
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2497 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * A few related changes:Colin Guthrie2008-10-082-36/+59
| | | | | | | | | | | | | | | | | | | | * 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
| * Keep track of the memblock pointer internally and do not rely on subsequent ↵Colin Guthrie2008-10-081-6/+6
| | | | | | | | | | | | 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
| * Set forgotten keyword propertyColin Guthrie2008-10-081-1/+1
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2483 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Set the send buffer size to prevent rendering silence in amongst our good ↵Colin Guthrie2008-10-081-0/+1
| | | | | | | | | | | | 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
| * Move the encoding loop around a bit such that it does not grab the data and ↵Colin Guthrie2008-10-081-10/+12
| | | | | | | | | | | | keep it for the next loop iteration. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2481 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Do tidy up on disconnection.Colin Guthrie2008-10-082-1/+11
| | | | | | | | | | | | 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
| * Do not prefix internal function rtsp_exec.Colin Guthrie2008-10-081-12/+9
| | | | | | | | | | | | | | 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
| * Don't try to free stack variables.Colin Guthrie2008-10-081-6/+0
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2409 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * unref the raw data memblock before requesting more data.Colin Guthrie2008-10-081-0/+4
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2408 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Some misc fixes. consts, base64 optimisation (not that it will be with us ↵Colin Guthrie2008-10-083-14/+14
| | | | | | | | | | | | long anyway), and c comments git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2407 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Fix up IPv6 address format to enclose it in []Colin Guthrie2008-10-081-4/+6
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2406 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Change suggested by Lennart. Do not return a memchunk, instead pass in the ↵Colin Guthrie2008-10-083-18/+19
| | | | | | | | | | | | pointer. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2405 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Various changes suggested by Lennart.Colin Guthrie2008-10-083-17/+17
| | | | | | | | | | | | | | 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
| * Listen to the on_close callback. This still causes asserts in the mainloop, ↵Colin Guthrie2008-10-081-0/+9
| | | | | | | | | | | | so this is not a complete solution git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2403 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Add a new callback structure to propigate when the RTSP connection diesColin Guthrie2008-10-084-5/+33
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2402 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Move the ownership of the encoded data memchunk into the raop_client.Colin Guthrie2008-10-082-26/+36
| | | | | | | | | | | | 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
| * Do not assert on NULL values of s. This means the connection was closed. ↵Colin Guthrie2008-10-081-1/+8
| | | | | | | | | | | | 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
| * A very rough first version of the sink.Colin Guthrie2008-10-081-123/+267
| | | | | | | | | | | | | | 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
| * Add more libraries to librtp now that it's doing a lot more.Colin Guthrie2008-10-081-1/+1
| | | | | | | | | | | | 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
| * Properly duplicate the hostname passed in on connect.Colin Guthrie2008-10-081-1/+2
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2396 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Combine pa_raop_client_new and pa_raop_client_connect (no point in having ↵Colin Guthrie2008-10-082-90/+102
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * Rename rtsp.{c,h} to rtsp_client.{c,h}.Colin Guthrie2008-10-084-49/+49
| | | | | | | | | | | | 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
| * Wrap the io_callback to ensure that all data is written before asking for more.Colin Guthrie2008-10-082-22/+62
| | | | | | | | | | | | 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
| * Use a more stateful response parser.Colin Guthrie2008-10-081-182/+138
| | | | | | | | | | | | | | 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
| * Add a pa_iochannel callback for when the RAOP connection connects.Colin Guthrie2008-10-083-11/+97
| | | | | | | | | | | | 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
| * Add a function for packing bits into a byte buffer. This will be needed when ↵Colin Guthrie2008-10-081-0/+52
| | | | | | | | | | | | encoding the audio data in ALAC format. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2368 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Some minor tidyup to remove code now in raop client. Still nowhere near ↵Colin Guthrie2008-10-081-67/+2
| | | | | | | | | | | | functional. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2367 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Add a skeleton raop client which builds on the rtsp client.Colin Guthrie2008-10-083-0/+349
| | | | | | | | | | | | 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
| * Move closer to an asynchronous structure (still some parsing code to be ↵Colin Guthrie2008-10-082-156/+220
| | | | | | | | | | | | | | | | | | | | 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
| * Trivial change to allocate memory using pulse methods.Colin Guthrie2008-10-081-3/+3
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2364 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Fix svn properties and some minor indentationColin Guthrie2008-10-082-2/+2
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2363 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Convert the return values to fit with the rest of pulse 0 == success, < 0 == ↵Colin Guthrie2008-10-081-17/+17
| | | | | | | | | | | | failure git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2362 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Convert to using pa_socket_client rather than using blocking IO.Colin Guthrie2008-10-082-63/+71
| | | | | | | | | | | | | | 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
| * Use _free rather than _destroy so as not to mix naming conventions.Colin Guthrie2008-10-082-28/+29
| | | | | | | | | | | | Convert C++ comments to C. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2349 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Use pa_sprintf_malloc to do simple concatenation rather than using the ↵Colin Guthrie2008-10-081-5/+3
| | | | | | | | | | | | higher overhead of pa_strbuf git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2348 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Start the raop sink. It's based on pipe sink and isn't anywhere near ↵Colin Guthrie2008-10-082-1/+430
| | | | | | | | | | | | finished. It does however compile. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2335 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Add a simple base64 library that will be used by the sinkColin Guthrie2008-10-082-0/+163
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2334 fefdeb5f-60dc-0310-8127-8f9354f1896f
| * Add a RTSP client impelmentation.Colin Guthrie2008-10-082-0/+538
| | | | | | | | | | | | 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
| * Add a small lib to interpret and produce headers as used in http style requests.Colin Guthrie2008-10-082-0/+238
| | | | | | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2332 fefdeb5f-60dc-0310-8127-8f9354f1896f
* | Fix a potential C++/C99 ism, add a log message on error conditionColin Guthrie2008-10-081-2/+5
| | | | | | | | Signed-off-by: Lennart Poettering <lennart@poettering.net>
* | define 0dB in PA as maximum amplificationLennart Poettering2008-10-082-8/+12
| |
* | enable flat volumes by defaultLennart Poettering2008-10-081-1/+4
| |
* | Merge branch 'flatvol'Lennart Poettering2008-10-0810-21/+311
|\ \
| * | query the sink volume outside of the loop because it might be quite expensiveLennart Poettering2008-10-081-4/+8
| | |
| * | use pa_sink_set_volume() for changing the volumeLennart Poettering2008-10-081-9/+1
| | |
| * | check the maximum volume of all sink inputs instead of the average volume to ↵Lennart Poettering2008-10-081-1/+1
| | | | | | | | | | | | avoid digital amplification in favour of attenuation
| * | some minor reformattingLennart Poettering2008-10-081-17/+21
| | |
| * | ignore sinks that do not carry decibel informationLennart Poettering2008-10-081-0/+6
| | |