- From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
- Date: Mon, 17 Dec 2012 16:45:42 +0200
- To: Marcos Caceres <marcosscaceres@gmail.com>
- Cc: "public-audio@w3.org" <public-audio@w3.org>
Received on Monday, 17 December 2012 14:46:15 UTC
On Sun, Dec 16, 2012 at 9:30 AM, Marcos Caceres <marcosscaceres@gmail.com>wrote: > Currently, the send() method is defined as: > void send (sequence<short> data, optional DOMHighResTimeStamp? timestamp); > > However, it appears to me that it is extremely common to only want to send > 3 bytes of data at a time (+ optional timestamp)… Having now been playing > around with the API for about 10 hours, I actually keep forgetting to put > things into an array (which leads to annoying errors). Can I recommend that > the send interface be overloaded: > > void send (sequence<short> data, optional DOMHighResTimeStamp? timestamp); > void send (short byte1, short byte2, short byte3, optional > DOMHighResTimeStamp? timestamp); > > That would make the interface much more natural to work with and avoid > having to remember to put things into an array all the time. > > -- > Marcos Caceres > http://datadriven.com.au > Heh, we actually had a veeeery looooong discussion about this earlier: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18764 Cheers, Jussi
Received on Monday, 17 December 2012 14:46:15 UTC