This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17329 - (activeSourceCount): AudioContext.activeSourceCount
Summary: (activeSourceCount): AudioContext.activeSourceCount
Status: CLOSED WONTFIX
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 11:21 UTC by Philip Jägenstedt
Modified: 2014-10-28 17:17 UTC (History)
3 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-06-05 11:21:09 UTC
Audio-ISSUE-31 (activeSourceCount): AudioContext.activeSourceCount [Web Audio API]

http://www.w3.org/2011/audio/track/issues/31

Raised by: Philip Jägenstedt
On product: Web Audio API

https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-activeSourceCount

"currently playing" is not sufficiently defined.

Possibly, is it the number of AudioBufferSourceNodes with playbackState == PLAYING_STATE. However, which AudioBufferSourceNodes? After creating them, the spec doesn't define any association with the AudioContext, so it's not clear how to count them.

Seemingly, only AudioBufferSourceNodes are included in the count, but given the name including Oscillator and MediaElementAudioSourceNode ought to also be included, given that they also have playing states (directly or indirectly).

Finally, what is the use case for activeSourceCount? If it can be dropped, the above issues become moot.
Comment 1 Olivier Thereaux 2012-06-07 15:56:42 UTC
Comment from Chris Rogers, 18 May 2012

Agreed, we can probably create a more elegant solution to include Oscillator, etc.
Comment 2 Philip Jägenstedt 2012-06-08 10:09:27 UTC
Our thinking was rather that activeSourceCount can simply be dropped.
Comment 3 paul@paul.cx 2013-08-30 16:48:11 UTC
activeSourceCount has been dropped from the spec, closing.
Comment 4 Olivier Thereaux 2014-10-28 17:14:19 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 5 Olivier Thereaux 2014-10-28 17:17:12 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.