Closed Bug 1199559 Opened 10 years ago Closed 10 years ago

produce generated AudioBuffer contents in a format suitable for direct use

Categories

(Core :: Web Audio, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: karlt, Assigned: karlt)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(9 files)

40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
40 bytes, text/x-review-board-request
padenot
: review+
Details
We can avoid copies of buffers with content generated by decodeAudioData OfflineAudioContext and ScriptProcessorNode.
Blocks: 1199560
bug 1199559 permit writing to ThreadSharedFloatArrayBufferList when not shared r?padenot Being able to write to the channel data in the buffer list saves the creator from needing to manage its own pointers to the channel data.
Attachment #8653905 - Flags: review?(padenot)
bug 1199559 add a helper to fallibly allocate ThreadSharedFloatArrayBufferList with buffers r?padenot
Attachment #8653906 - Flags: review?(padenot)
bug 1199559 add a factory method to accept generated buffer contents in a format suitable for direct use r?padenot This API lets AudioBuffer generators avoid a copy. Future modifications to AudioBuffer will remove the unnecessary initial allocation and zeroing.
Attachment #8653907 - Flags: review?(padenot)
bug 1199559 write offline buffer in a format suitable for direct use by AudioBuffer r?padenot saving a copy.
Attachment #8653908 - Flags: review?(padenot)
bug 1199559 write decodeAudioData buffer in a format suitable for direct use by AudioBuffer r?padenot saving a copy.
Attachment #8653909 - Flags: review?(padenot)
bug 1199559 write audioprocess input buffer in a format suitable for direct use by AudioBuffer r?padenot saving copying. This also avoids graph thread allocations when input is null.
Attachment #8653910 - Flags: review?(padenot)
bug 1199559 remove now unused SetRawChannelContents r?padenot
Attachment #8653911 - Flags: review?(padenot)
bug 1199560 finish offline audio context processing even when allocation fails r?padenot ProcessBlock() needs to return aFinished = true at some point.
Attachment #8653912 - Flags: review?(padenot)
bug 1199561 delay offline buffer allocation until non-null input is received r?padenot The avoids the allocation and copying altogether when the output buffer is silent.
Attachment #8653913 - Flags: review?(padenot)
I see bug 1135941 is already filed. I'll leave the review requests for other bugs in this set in case it is easier to diff between the base and end of the set.
Comment on attachment 8653913 [details] MozReview Request: bug 1199561 delay offline buffer allocation until non-null input is received r?padenot https://reviewboard.mozilla.org/r/17569/#review15673
Attachment #8653913 - Flags: review?(padenot) → review+
Comment on attachment 8653905 [details] MozReview Request: bug 1199559 permit writing to ThreadSharedFloatArrayBufferList when not shared r?padenot https://reviewboard.mozilla.org/r/17553/#review15675
Attachment #8653905 - Flags: review?(padenot) → review+
Comment on attachment 8653906 [details] MozReview Request: bug 1199559 add a helper to fallibly allocate ThreadSharedFloatArrayBufferList with buffers r?padenot https://reviewboard.mozilla.org/r/17555/#review15677
Attachment #8653906 - Flags: review?(padenot) → review+
Comment on attachment 8653907 [details] MozReview Request: bug 1199559 add a factory method to accept generated buffer contents in a format suitable for direct use r?padenot https://reviewboard.mozilla.org/r/17557/#review15679
Attachment #8653907 - Flags: review?(padenot) → review+
Attachment #8653909 - Flags: review?(padenot) → review+
Comment on attachment 8653909 [details] MozReview Request: bug 1199559 write decodeAudioData buffer in a format suitable for direct use by AudioBuffer r?padenot https://reviewboard.mozilla.org/r/17561/#review15683
Comment on attachment 8653910 [details] MozReview Request: bug 1199559 write audioprocess input buffer in a format suitable for direct use by AudioBuffer r?padenot https://reviewboard.mozilla.org/r/17563/#review15685
Attachment #8653910 - Flags: review?(padenot) → review+
Attachment #8653911 - Flags: review?(padenot) → review+
Comment on attachment 8653911 [details] MozReview Request: bug 1199559 remove now unused SetRawChannelContents r?padenot https://reviewboard.mozilla.org/r/17565/#review15687
Comment on attachment 8653912 [details] MozReview Request: bug 1199560 finish offline audio context processing even when allocation fails r?padenot https://reviewboard.mozilla.org/r/17567/#review15689
Attachment #8653912 - Flags: review?(padenot) → review+
Comment on attachment 8653908 [details] MozReview Request: bug 1199559 write offline buffer in a format suitable for direct use by AudioBuffer r?padenot https://reviewboard.mozilla.org/r/17559/#review15681
Attachment #8653908 - Flags: review?(padenot) → review+
Flags: in-testsuite-
Blocks: 937957
Depends on: 1221855
Depends on: 1225003
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: