Skip to content

feat: expose PCM readback for WAV, MP3 and FLAC - #38

Open
txbrown wants to merge 1 commit into
mainfrom
feat/37-pcm-readback
Open

txbrown wants to merge 1 commit into
mainfrom
feat/37-pcm-readback

Conversation

@txbrown

@txbrown txbrown commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #37.

The decoder already handles WAV, MP3 and FLAC for playback. This exposes decoded PCM to JavaScript through loadAudioResourceForReadback and readAudioResourcePCM, so importers can slice or resample files without a local native patch. unloadAudioResource releases the retained samples.

Imports are bounded before PCM allocation; reads return interleaved chunks of up to 16,384 frames. iOS readback does not start AVAudioEngine. Existing VFS loading and beta.4's startup/rendering fixes stay intact. M4A/AAC remains unsupported.

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.

Expose PCM readback for WAV, MP3 and FLAC

1 participant