[Pianod] libao settings testing
Perette Barella
perette at barella.org
Mon Apr 29 05:52:16 PDT 2013
Hi James,
What I'm reading this as, is you want the current song's station to have a different numeric code from stations in the station list. I don't think this gains much; codes are re-used all over the place. For example, station is used for current station, station list, mix stations (both included and excluded); ratings, track name, and ID all get reused for any of the seed/feedback data and search results as well as current track.
Thus, I maintain it is in the client's domain to separate unsolicited messages from request responses. This is pretty easily done; just shunt anything between 203 Data and 204 End of data messages into reply handling. See communication.js for a JavaScript example.
http://deviousFish.com/Pianod/client/communication.js
In receive_message, the 'state' variable is set to DISCRETE when processing unsolicited messages, and COMMAND when a 203 is received. It then collects the subsequent messages into a single response and delivers it when 204 comes in, and goes back to DISCRETE mode.
Perette
--
Perette Barella • perette at barella.org • 585-286-1312
176 Middlesex Road, Rochester NY 14610
On 2013年04月28日, at 23:26, Jimmy Pop wrote:
> On another note, I propose a change from the current return of the channel list using response header 115, this is used as the "current playing" unsolicited feedback, I have modified responses(c/h) to use 175 as a temporary station list response header, but would like to see if this could be added to the official source to retain settings across revisions, perhaps a runtime flag that if missing defaults to the old idiom.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130429/7542e371/attachment-0003.htm>
More information about the Pianod
mailing list