# Audio ## The hardware, as far as our sources go - **No sound chip.** Copetti: "there isn't a large amount of sound-related circuitry"; two PCM output channels at the end of the chain (the "endpoint"), fed by DMA, and a codec on the I2C bus (WM8750: YAPSPD 7.4). The audio block is at 0xBE000000 (YAPSPD 7.4, "names only"). - Everything else is software: the kernel's mixer, the ME's decoders (ATRAC3, ATRAC3plus, MP3, AAC), and SAS, a software synthesiser library (Copetti cites PPSSPP's `SasAudio.cpp` and `SimpleAudioDec.cpp` for his detail: an emulator's reading, OBSERVED, tier 5; not read by us). ## What games call (pspsdk `src/audio`, `src/sascore`, `src/atrac3`, `src/mp3`) - `sceAudioChReserve` and friends: **8 channels** (`PSP_AUDIO_CHANNEL_MAX 8`), sample counts 64-65472 in steps of 64, stereo or mono, 16-bit, blocking and non-blocking output. - `sceAudioOutput2*` and `sceAudioSRCChReserve(samplecount, freq, channels)`: one more output with sample-rate conversion. - `sceSasCore`: voices, ADSR envelopes, effects (pspautotests `sascore`, `reverb`). - `sceAtrac3plus`, `sceMp3`, `sceAudiocodec`: decoders. ## Under the recommended boundary - The **channels' mixing and pacing** are modelled as the hardware output they drive: a 48 kHz (HYPOTHESIS: 44.1 kHz is also possible; U9) stereo stream with each blocking call released when its buffer has been consumed. pspautotests `audio/sceaudio`, `blocking`, `output2`, `timing` (78 outputs in `audio/`) judge the visible behaviour: when calls return, what `GetRestSample` says. - **SAS** is a functional model (Sony's code on real hardware), judged by `sascore` outputs. Its DSP details (envelope curves, interpolation) are U10. - **Decoders** are host functions: ATRAC3plus has no permissive implementation we know (FFmpeg's is LGPL: closed box) (P4). The family's "sound: good enough" rule (Aubrey, 2026-11-13) applies: exactness of timing and of what software reads first, sample-exactness of the mix later.