W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

[Bug 18759] boolean returns from MIDIOutput methods are inappropriately synchronous

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Sep 2012 10:00:46 +0000
Message-Id: <E1T9CPe-00053j-Bv@jessica.w3.org>
To: public-audio@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18759

Jussi Kalliokoski <jussi.kalliokoski@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jussi.kalliokoski@gmail.com

--- Comment #1 from Jussi Kalliokoski <jussi.kalliokoski@gmail.com> 2012-09-05 10:00:46 UTC ---
(In reply to comment #0)
> Both sendMIDIMessage and sendMessage "return(s) a boolean signifying whether
> the operation was successful."
> 
> That sounds like this is intended to be a synchronous call, which is a very bad
> idea (since MIDI messages may take a long time to send, on a hardware MIDI port
> for example).  At the very least, this should state "signifying whether the
> message was successfully enqueued."
> 
> At most, we should probably add an onsuccess/onerror callback set to
> setMIDIMessage().

Agreed. The callbacks are something we can add at a later date if there are
some actual use cases for them. I'll remove the notion of returning a boolean.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 5 September 2012 10:02:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 5 September 2012 10:02:53 GMT