AudioContext.decodeAudioData(…) not working on iPhone but working everywhere else
问题 I have the following very basic code which is part of a more complex problem. My problem here is the function: context.decodeAudioData(arrayBuffer) is not working on iPhone (tried on Safari and Chrome ) nor Mac (Safari), but it works everywhere else ( Android and Windows 10 (all browsers). Even it works on Mac (Chrome). On Mac (Safari) I get the following error: Unhandled Promise Rejection: TypeError: Not enough arguments Here is the code: window.AudioContext = window.AudioContext || window