Add PCM audio streaming driver - #154
Open
WojciechGw wants to merge 21 commits into
Open
Conversation
WojciechGw
force-pushed
the
driver/PCM
branch
3 times, most recently
from
July 5, 2026 15:26
709e454 to
293493d
Compare
Contributor
Author
|
ROM 2nd test .wav |
WojciechGw
force-pushed
the
driver/PCM
branch
2 times, most recently
from
July 13, 2026 20:17
f1640e1 to
16b7518
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PCM audio streaming driver
Adds raw PCM playback via a ring buffer in XRAM, activated through the existing XREG audio channel (device=0, channel=1, address=2).
XRAM layout
8-byte header at the base address followed by the ring buffer:
write_ptrformatbuf_size_log2sample_rateread_ptr1 << buf_size_log2bytesSupported formats
All combinations of:
The RP2350 IRQ runs at the configured sample rate and mixes BEL alert sounds on both channels, consistent with PSG and OPL behaviour. Calling any other audio XREG automatically stops PCM via
aud_setup().Activation
Additional files
solution notepad
PCM.md
cc65 (c89) test player
playpcm.c
test.wav for test player
testwav.zip