DYSTOPIANPIXEL

audioControl Driver

Coral code, lime and coral waveforms, and moving sound sources around a listener on charcoal
Music and effects, with the planned positional sound and wider stereo soundstage illustrated.

Last updated: · In development

Stage 7D1 · Resident stereo PCM proof

Stage 7D1 will take a short section of the original stereo source into RAM. Each sample period needs an independent unsigned 8-bit value for the left DAC channel and another for the right at 16 kHz. Keeping SD out of this first test isolates channel timing and routing. Headphones can distinguish left-only, right-only and simultaneous stereo material.

Extend stereo in separate steps

After a successful RAM test, measure the cost of servicing two channels and protecting their timing. Alternating stereo buffers and reading stereo material from SD would then need separate hardware trials.

Define the file service and buffer handoff

The standalone helpers use the NextZXOS/esxDOS-compatible file interface. A production design still needs to decide who opens, reads and closes the file, who refills and hands off a free buffer, and what the resident audioControl .DRV does when a block ends or a read fails. The resident driver cannot assume it can call the helpers’ filesystem routines internally.

Protect music, effects and timing

Repeat the Build 48 PT3 and AYFX checks, including simultaneous music and effects. Check buffer boundaries, final short reads, error cleanup, pitch and duration at 50 Hz and 60 Hz before incorporating the PCM path.

Keep game controls consistent

Build on the completed playback-selection and capability framework so future audio options can fit behind the same game-facing controls. Keep unavailable options explicit and preserve the existing music-and-effects behaviour.

Exercise ship events when they are available

Once shipControl produces working event reports, prepare a BASIC example mapping firing, hits and resource events to audio requests. This remains a separate integration task.

Revisit music balance without changing the tune

Any later music lowering or transition work must preserve the musical character across several tracks. The rejected blanket volume treatment is not a completed feature.