Skip to content

fix(ToneConstantSource): preserve delayed start time#1458

Open
whizzkid1452 wants to merge 1 commit into
Tonejs:devfrom
whizzkid1452:bug/tone-constant-source-suspended-start
Open

fix(ToneConstantSource): preserve delayed start time#1458
whizzkid1452 wants to merge 1 commit into
Tonejs:devfrom
whizzkid1452:bug/tone-constant-source-suspended-start

Conversation

@whizzkid1452

Copy link
Copy Markdown

Summary

  • Preserve the scheduled ToneConstantSource start time when the native ConstantSourceNode is created after a suspended AudioContext resumes.
  • Add coverage for scheduling a future start before the audio context is resumed.

Test plan

  • npx prettier --write Tone\signal\ToneConstantSource.ts Tone\signal\ToneConstantSource.test.ts
  • npx tsc
  • npx eslint Tone\signal\ToneConstantSource.ts Tone\signal\ToneConstantSource.test.ts
  • npx web-test-runner --config=./test/web-test-runner.config.js --coverage --group signal

@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.95%. Comparing base (ac4cd10) to head (6424e7b).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1458   +/-   ##
=======================================
  Coverage   98.95%   98.95%           
=======================================
  Files         209      209           
  Lines       23529    23531    +2     
  Branches     1045     1047    +2     
=======================================
+ Hits        23281    23284    +3     
+ Misses        247      246    -1     
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant