Skip to content

Switch to Symphonia.#148

Merged
mdwn merged 1 commit intomainfrom
switch-to-symphonia
Jan 28, 2026
Merged

Switch to Symphonia.#148
mdwn merged 1 commit intomainfrom
switch-to-symphonia

Conversation

@mdwn
Copy link
Owner

@mdwn mdwn commented Jan 27, 2026

The backing decoder has been switched to Symphonia which supports many more file formats than just WAV.

Closes #10


Note

Replaces WAV-only decoding with a Symphonia-based pipeline and updates config, IO, and docs accordingly.

  • Introduces AudioSampleSource (Symphonia) and removes WavSampleSource; factory now accepts start_time and buffer_size and returns generic sources; unifies errors under SampleSourceError.
  • Supports WAV, MP3, FLAC, OGG/Vorbis, AAC, ALAC/M4A; examples and README updated to reflect new formats and behavior; licensure excludes additional audio extensions.
  • Adjusts channel-mapping/transcoding path to work with generic sources; keeps resampling via AudioTranscoder when format differs.
  • Configuration: removes buffer_threshold; repurposes audio.buffer_size as decoded-sample buffer; CPAL and song loading paths updated to use new factory/signature.
  • Logging: enables tracing-subscriber with env-filter and defaults to off,mtrack=info to reduce Symphonia noise.
  • Adds comprehensive tests for integer scaling and decoding across formats; moves hound to dev-dependencies; updates Cargo to include symphonia.

Written by Cursor Bugbot for commit 531dc5d. This will update automatically on new commits. Configure here.

@mdwn mdwn force-pushed the switch-to-symphonia branch from acbd36c to c751ccf Compare January 27, 2026 15:41
@mdwn mdwn force-pushed the switch-to-symphonia branch 2 times, most recently from 8998fd2 to 9317663 Compare January 27, 2026 20:22
@mdwn mdwn force-pushed the switch-to-symphonia branch 2 times, most recently from b6204e3 to 1ab54c6 Compare January 27, 2026 20:39
@mdwn mdwn force-pushed the switch-to-symphonia branch from 1ab54c6 to 9dae217 Compare January 27, 2026 21:07
@mdwn mdwn force-pushed the switch-to-symphonia branch 2 times, most recently from c5b752b to 75fddf8 Compare January 27, 2026 21:46
@mdwn mdwn force-pushed the switch-to-symphonia branch from 75fddf8 to bdc54f5 Compare January 27, 2026 22:04
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

The backing decoder has been switched to Symphonia which supports many
more file formats than just WAV.
@mdwn mdwn force-pushed the switch-to-symphonia branch from bdc54f5 to 531dc5d Compare January 27, 2026 22:17
@mdwn mdwn merged commit 8ffceb2 into main Jan 28, 2026
7 checks passed
@mdwn mdwn deleted the switch-to-symphonia branch January 28, 2026 17:32
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.

FLAC parsing

1 participant