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

Bring the PCM path into a game

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.

Build 48 remains the AY reference for PT3 music and AYFX effects at 50 Hz and 60 Hz. Build 54 supplies the single-shot DAC path used in the PCM tests. The two baselines give future integration work independent checks for chip audio and sample playback.

Version 2: sounds that follow the world

V2 will develop continuous left/right placement, distance-based volume and moving sampled sound sources. A sound’s location will be relative to the player or chosen listener, so scrolling the camera does not change where it belongs.

An unseen waterfall or enemy can remain audible outside the screen. Menu and interface sounds can stay unpositioned, and the existing music and effects will continue alongside the new sampled sounds.

Enhanced direction and a wider stereo scene

Optional differences in timing and tone are planned to strengthen the impression of direction. A separate stereo-expansion effect will change the width of the overall soundstage, with the option to keep the ordinary presentation.

These are the driver’s own effects inspired by Q-Sound and Q-Expander-like principles. Ambience, narration and ghostly whispers may benefit from more width, while a nearby character can remain precisely placed. The final settings will be shaped by practical development.

Version 3: sounds above and below

V3 will add height-based perception to V2’s horizontal positioning and distance. Changes in tone will help suggest sources slightly or far above or below the listener, combined with movement across the scene.

Front/back perception may be explored afterwards. It remains an investigation rather than a promised feature.

Voices and effects in the same world

Future cooperation with speechControl should let dialogue use the same listener, source position, distance and height conventions as sound effects. A speaking character’s audible position should be able to change while either the character or player moves.

speechControl will continue to manage speaking and listening, while audioControl coordinates the mix. Bringing Pi-delivered speech into this shared sound world needs its own integration work; it will not happen automatically.

More control over competing sounds

Later improvements could replace individual playing effects more selectively, reserve a place for a chosen sound and limit simultaneous copies. Groups for player, enemy, environment and interface sounds could make wider control easier.

Music lowering needs a different approach after the early experiments introduced crackling or altered the music. Fades, gentle recovery and transitions between tracks remain future refinements, with fidelity taking priority.

Sustained sounds and changing ambience

A full tune can now cross hundreds of buffer boundaries. A game-controlled engine hum, wind loop or warning adds different requirements, including a defined loop point, stopping promptly and sharing resources with music and effects.

Recorded sound and a wider music choice

A stereo MP3 supplied the material for FULLTUNE.RAW. The helper played the pre-converted mono PCM from SD. Native MP3 decoding and MOD playback are separate questions.

A resident stereo experiment is the next step after the full-track mono proof. Longer-term work includes richer formats, game-controlled sound placement and distance.

Optional Pi-assisted playback

Later research on Pi-equipped machines could offer additional playback choices, including MOD, WAV, MP3, SID and MIDI. This follows the local-audio foundations and is not part of the current completed feature set.

The Pi would handle the extra playback work while normal game effects continue. A game should still run on a Next without a Pi, using local music and effects.

Reuse without rewriting the game

The same game action should be able to choose different sounds in another game or use a newer playback option later. Player movement, enemy behaviour and scrolling should keep their own responsibilities as the sound system grows.

V2 will already allow for the world-position information needed by V3, keeping later elevation support compatible with the earlier positional setup.

Sound for ship and combat events

Future shipControl examples will let BASIC map firing, hits, empty ammunition, insufficient energy, overheating and module changes to audio requests. shipControl will report what happened; it will neither select nor play a sound. audioControl retains the playback, priority and sound-management work.