Bug 79689 - Throw exception in noteGrainOn if the grain duration is longer than the buffer
Summary: Throw exception in noteGrainOn if the grain duration is longer than the buffer
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 11:43 PST by Raymond Toy
Modified: 2012-02-27 11:43 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Toy 2012-02-27 11:43:52 PST
In AudioBufferSourceNode.cpp, there is a FIXME comment about this.  While writing some layout tests, A typo caused my buffer duration to be very short and the grain duration to exceed the buffer duration.  Took a while to figure out why the grain was not being played.  An exception here would have been nice.

As currently implemented, if the grain duration exceeds the buffer duration, nothing is played.  Perhaps, whatever can be played from the buffer should be?