Bug 223668 - audioBuffer.getChannelData(x) keep returning the same values irrespective of gain value
Summary: audioBuffer.getChannelData(x) keep returning the same values irrespective of ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-23 19:10 PDT by Khushpreet
Modified: 2021-03-30 19:11 PDT (History)
2 users (show)

See Also:


Attachments
Audio graph (52.18 KB, image/png)
2021-03-23 19:10 PDT, Khushpreet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khushpreet 2021-03-23 19:10:56 PDT
Created attachment 424091 [details]
Audio graph

getChannelData() keep returning the same value in 'audioProcessingEvent' irrespective of the gain value in the Safari browser.  

Basically, the audio representation in the audio level doesn't change if I change the volume. (please see the audio graph attached here). 

Code works perfectly on Chrome, Firefox in Windows, and also on Chrome in macOS. The issue occurs only in Safari (tested on version 11 and above)

Returned Audio data is 0 when the gain value is 0, but the non-zero gain value doesn't make any difference for the audio data output.
Comment 1 Chris Dumez 2021-03-23 19:53:11 PDT
Do you have a reproduction case? It would help a lot. Also, did you try in Safari Technology Preview? We made a lot of webaudio improvements that have not shipped anywhere but Safari technology preview yet.
Comment 2 Radar WebKit Bug Importer 2021-03-30 19:11:12 PDT
<rdar://problem/76033676>