Skip to main content

Module sound

Module sound 

Source
Expand description

Sound Manager state and mixing engine.

Holds per-channel playback state and produces mixed PCM output each frame. Reference: Inside Macintosh: Sound (1994).

Modules§

cmd
Sound command constants (Sound 1994, 2-92 to 2-97).

Structs§

DoubleBufferState
Double-buffer playback state for SndPlayDoubleBuffer. Sound 1994, 2-111 to 2-113
PendingDoubleBackCallback
A pending double-buffer callback that the runner should fire.
SndChannel
Per-channel state.
SndCommand
A sound command extracted from a snd resource or queued via SndDoCommand. Sound 1994, 2-92
SoundManager
Top-level sound manager state, owned by TrapDispatcher.

Enums§

PendingSoundCallback
A pending callback or completion routine to fire from interrupt context.

Constants§

OUTPUT_RATE
Output sample rate in Hz.
RATE_11KHZ_FIXED
Classic Sound Manager rate11khz fixed-point value (11127.27273 Hz).
RATE_22KHZ_FIXED
Classic Sound Manager rate22khz fixed-point value (22254.54545 Hz).