[Bug 20229] New: It is not exact to describe close function of AudioBufferSourceNode

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

            Bug ID: 20229
           Summary: It is not exact to describe close function of
                    AudioBufferSourceNode
    Classification: Unclassified
           Product: AudioWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Audio API
          Assignee: crogers@google.com
          Reporter: li.yin@intel.com
        QA Contact: public-audio@w3.org

>From the spec, it says "stop must only be called one time and only after a call
to start or stop, or an exception will be thrown."

It's confused to me that if stop can be called only one time, it should be
impossible that stop can be called after stop. In offlinemode, stop can be
called multiple times from web developers' eyes.

So maybe it will be more reasonable if we describe it like this:
start can be called only when playbackState is UNSCHEDULED_STATE, or
InvalidStateError exception will be thrown.
stop can be called only when playbackState is SCHEDULED_STATE or PLAYING_STATE,
if not, InvalidStateError exception will be thrown.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 4 December 2012 08:46:52 UTC