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 17377 - (AudioBufferSourceNodeResampling): AudioBufferSourceNode resampling
Summary: (AudioBufferSourceNodeResampling): AudioBufferSourceNode resampling
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: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 11:59 UTC by Philip Jägenstedt
Modified: 2014-10-28 17:17 UTC (History)
2 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-06-05 11:59:42 UTC
Audio-ISSUE-92 (AudioBufferSourceNodeResampling): AudioBufferSourceNode resampling [Web Audio API]

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

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

AudioBufferSourceNode has a playbackRate attribute which will require interpolation/resampling of some kind. However, it is not defined how to resample. Possibly it should be as close as possible to an ideal resampling, in which case that should be stated. Alternatively, it could be possible to specify which kind of resampling to perform via an attribute: nearest, linear, cubic, sinc, etc...

It also needs to be defined what should be done about folding when the net result of the sample rates and playback rate is a downsampling, if anything.
Comment 1 Chris Rogers 2012-10-16 20:27:50 UTC
(In reply to comment #0)
> Audio-ISSUE-92 (AudioBufferSourceNodeResampling): AudioBufferSourceNode
> resampling [Web Audio API]
> 
> http://www.w3.org/2011/audio/track/issues/92
> 
> Raised by: Philip Jägenstedt
> On product: Web Audio API
> 
> AudioBufferSourceNode has a playbackRate attribute which will require
> interpolation/resampling of some kind. However, it is not defined how to
> resample. Possibly it should be as close as possible to an ideal resampling,
> in which case that should be stated. Alternatively, it could be possible to
> specify which kind of resampling to perform via an attribute: nearest,
> linear, cubic, sinc, etc...
> 
> It also needs to be defined what should be done about folding when the net
> result of the sample rates and playback rate is a downsampling, if anything.

I agree that a .resamplingType attribute could be defined, but holding off on that for now, since it's something which can later be added.  In the mean-time, I think we should specify that the default is "linear".  Does that seem ok?
Comment 2 Philip Jägenstedt 2012-10-17 08:42:10 UTC
Yeah, that sounds OK.
Comment 3 Olivier Thereaux 2014-10-28 17:14:55 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 4 Olivier Thereaux 2014-10-28 17:17:53 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.