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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18759

           Summary: boolean returns from MIDIOutput methods are
                    inappropriately synchronous
           Product: AudioWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: MIDI API
        AssignedTo: dave.null@w3.org
        ReportedBy: cwilso@gmail.com
         QAContact: public-audio@w3.org


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().

-- 
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 Friday, 31 August 2012 22:36:19 UTC