C2LC-253: Audio Context warning about using it without a user gesture

Metadata

Source
C2LC-253
Type
Bug
Priority
N/A
Status
In Progress
Resolution
N/A
Assignee
Tony Atkins [RtF]
Reporter
Created
2020-11-05T10:53:39.051-0500
Updated
2024-05-13T15:59:17.172-0400
Versions
N/A
Fixed Versions
N/A
Component
N/A

Description

"The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu"

Currently appearing in 4 places:

  1. audio-context-constructor.ts:40
  2. test-audio-node-disconnect-method-support.ts:45
  3. test-audio-scheduled-source-node-start-method-negative-parameters-support.ts:7
  4. constant-source-node-constructor.ts:85

Comments

  • Tony Atkins [RtF] commented 2020-11-06T03:43:56.556-0500

    https://github.com/codelearncreate/c2lc-coding-environment/pull/96

  • Simon Bates commented 2020-11-30T16:03:43.029-0500

    We have tried a number of strategies for delaying the initialization and playing of sounds in Tone.js, but we haven't been able to get rid of the warnings.

    There is a Tone.js issue with some discussion regarding "The AudioContext was not allowed to start" warnings: https://github.com/Tonejs/Tone.js/issues/776. And at this point, it looks most likely that the warnings are from Tone.js code that is out of our control.

    I'm going to leave this issue open, but we won't do any more work on it for now. If Tone.js is changed to remove these warnings, at that time we can see if we need to make any code changes.

  • Simon Bates commented 2024-05-13T15:59:17.172-0400

    Moved to GitHub: https://github.com/codelearncreate/c2lc-coding-environment/issues/528