albertz/shairport — pull request #120 by stefdude (2011-10-10 07:37:25+00:00)
Title: 1 x bugfix, 1 x improvement, 1 x new feature

As requested, I made the previously-initiated issues pull requests.

- BUFFER_FRAMES should be a power of two (currently it's 320, which gives garbled sound every time the sequence number wraps, this is due to the current implementation of BUFIDX)
- send last-chance-retry only once (currently, I saw up to 6 retries for the same packet fired in the same second)
- new feature: run a custom program on first connect play and and last disconnect.

Feel free to further improve any of these changes.