Commit Graph
317 Commits
Author SHA1 Message Date
Mike Brady 6d66b2ed33 Stop erroneously assuming that the buffer passed to the player is not changed -- sometimes it is, it seems. Tidy up some typing. 2018-05-07 22:00:01 +01:00
Mike Brady 41241681e3 Make resend error backoff work better and set it to 0.5 seconds. Quieten some routine debug messages. 2018-04-23 13:09:44 +01:00
Mike Brady 3e72bb216e Send resend requests via control channel rather than the audio channel. This makes it compatilbe iwht AirAudio and confformant with the unofficial guide to the airplay protocol. Brown bag time. 2018-04-19 10:16:28 +01:00
Mike Brady ad48056686 Improvements in handling non-existent DACP server, slightly more informative debug messages. 3.2RC4. 2018-04-18 10:34:50 +01:00
Mike Brady ae94daf259 Add a little more detail to the resend requests 2018-04-17 21:08:29 +01:00
Mike Brady 70c72821c9 Add code to skip occasional outgoing and icoming timing and resnd packets to simulate a bad network. Quieten some debug messages. 2018-04-14 17:33:45 +01:00
Mike Brady deb9f4b86b Add logic to skip an occasional outbound timing requester or to discard an occasional incoming timing packet, all to simulate a poor network. 2018-04-14 16:07:13 +01:00
Mike Brady 49d5486df6 Keep timestamp info from the incoming audio packet 2018-04-14 13:56:44 +01:00
Mike Brady e76a636668 Fix serious and long-standing bugs in the control, audio and timing threads that could be responsible for low resilience on noisy and unrealiable networks. Add ability to simiulate UDP receive and send failures on timing, control and audio ports. Significantly improve resend requesting and handling. 2018-04-14 13:01:42 +01:00
Mike Brady c40d1ad53c Change the order of port allocation in rtp setup. Change some debug weights. 2018-04-12 22:47:42 +01:00
Mike Brady a9d6e0a2e6 Remove some debug messages 2018-04-11 10:34:09 +01:00
Mike Brady 665a53a8b5 Allow sps to deal with duplicate RTSP messages like RECORD and SETUP. Add some diagnostics to the player. 2018-04-10 17:35:39 +01:00
Mike Brady d3e2cb5d92 Modify latency detection to use the second word of a sync packet to decide whether to add an extra delay or not. Use all sync packets, not just one with the exception flag. Use 1024 buffers -- a bit profligate, but hey. 2018-04-02 16:44:16 +01:00
Mike Brady 8bf83c149f Modify latency detection to use the second word of a sync packet to decide whether to add an extra delay or not. Use all sync packets, not just one with the exception flag. Use 1024 buffers -- a bit profligate, but hey. 2018-04-02 16:42:46 +01:00
Mike Brady 32c7a535a1 Make scanning for DACP port part of the dacp handler. Only emit 'clip' and 'svip' for a play connection, suppress 'pfls' until 'pffr' has been emitted 2018-03-31 17:34:59 +01:00
Mike Brady 69b3b5d776 Send rtsp events to the metadata thteread for handling. Begin to clean up signals. 2018-03-31 12:39:26 +01:00
Mike Brady cbbe84d8ba Add some more D-Bus facilities. Countermand faulty D-Bus commands. 2018-03-24 17:48:32 +00:00
Mike Brady 340e365a62 Format after adding a few new elements ot the native dbus interface 2018-03-23 21:29:38 +00:00
Mike Brady 6dc30c6ca9 Add a few new elements ot the native dbus interface 2018-03-23 21:28:28 +00:00
Mike Brady d692fab9e4 Clean up native dbus interface files and associated changes to existing files. 2018-03-20 16:31:59 +00:00
Mike Brady 5db1cbfc3d Fix compilation error when dacp support not needed 2018-03-19 17:31:02 +00:00
Mike Brady c02e53ea80 Add server status -- i.e. can we still send commands to the DACP server. Hook it up as "Server" property in basic remote control. 2018-03-19 16:53:58 +00:00
Mike Brady fba40733f3 Add more basic remote control stuff, but SPS gets confused about who it can control. 2018-03-18 19:10:45 +00:00
Mike Brady 13931664ed Check if locks are already acquired. 2018-03-16 15:57:35 +00:00
Mike Brady ab75058bd1 Buggy calculation of initial silence. This fixes it, but don't know why. Yikes. 2018-03-09 20:55:41 +00:00
Mike Brady 5ba343bbf0 On receipt of a notify volume change, only send it to the dacp device if it's different to the posted volume -- stops loops 2018-03-09 16:27:20 +00:00
Mike Brady 47fff82dd2 Getting the volume properties to work without feedback -- not there yet... 2018-03-09 09:25:49 +00:00
Mike Brady 0cd8a2ce90 Remove more causes of warnings at -Wextra levels 2018-03-07 22:05:11 +00:00
Mike Brady cfd40af87e Remove a few more warning causes. 2018-03-07 19:27:45 +00:00
Mike Brady c36a7822a3 Tidy up using clang-format 2018-03-07 14:35:25 +00:00
Mike Brady 07e46565ca Eliminate almost all warnings from -Wall 2018-03-07 14:29:14 +00:00
Mike Brady 0b07e1eafd Quieten some more debug messages. 2018-02-21 18:49:24 +00:00
Mike Brady b05ced6658 Make the scan interval five seconds and quieten some more debug messages. 2018-02-21 18:38:13 +00:00
Mike Brady 64d36693d4 Add play/pause/stop MPRIS and quieten some debug messages 2018-02-21 18:30:32 +00:00
Mike Brady bef287d90a Disable playerstatus metadata updates, add facility to release track metadata, enable a lot of debug messages 2018-02-19 20:56:49 +00:00
Mike Brady 3a4e29c5c6 Tidy up dacp scanner -- stop scanning when audio source goes offline. 2018-02-18 16:29:09 +00:00
Mike Brady f2bcf7528c Check for missing packets only once, approximately 250 ms after they should have arrived. They may take a good half second to be resent. 2018-02-13 17:20:08 +00:00
Mike Brady 79e22b32ad Remove an incorrect debug message about dithering 2018-02-10 18:37:08 +00:00
Mike Brady b1e4ac7d05 Quieten a few debug messages 2018-02-10 17:58:39 +00:00
Mike Brady f94d6a5d16 Only request a resend one time, after about a second. Stop making resend requests if there is a send-to error for 10 seconds. 2018-02-10 17:43:47 +00:00
Mike Brady 283e4930e8 Add support for OpenBSD compilation 2018-02-09 21:11:39 +00:00
Mike Brady 0a29b61238 Quieten some debug messages 2018-02-05 19:56:21 +00:00
Mike Brady 370501117e Change snd_pcm_drain to snd_pcm_drop, remove the blocking and unblocking code, so a little formatting. 2018-02-05 14:19:33 +00:00
Mike Brady 5fca5428a6 Remove 100 mS delay fudge at the close of a player thread. Probably don't need it. Also not prior move or player_play to RECORD from SETUP, I think 2018-02-03 21:00:00 +00:00
Mike Brady a0bb2993df Add timing to debug messages, make timing sender wait interruptable eveyr 20 ms, thus making TEARDOWN faster. 2018-02-03 20:24:58 +00:00
Mike Brady ab6fef93e1 Improve resyncing when many frames have to be discarded. Should stop the "audio speeding up" effect. 2018-02-01 22:17:41 +00:00
Mike Brady f83b86ec23 Add the option to use a flat volume control profile. 2018-01-29 22:28:22 +00:00
Mike Brady c6aa6fd27d Add ability to diable resend request. Use a new "diagnostics" group in the configuration file and move log_verbosity and statistics to it. 2018-01-24 11:12:29 +00:00
Mike Brady 564ff638e6 Bracket metadata reception with prologs and epilogs, make metadat pipe and art directory writable by group and world 2018-01-23 11:13:19 +00:00
Mike Brady f67b63b9c4 Wait a little longer before looking for missing packets 2018-01-18 15:17:07 +00:00