Skip to content

pkgs/audio/pcm

Defines the PCM format, chunk, track, writer and mixer abstraction used by the GizClaw audio pipeline.

Go API References

Core structure and main function

SymbolFunction
FormatExpress sample encoding, sample rate and channels.
Chunk / DataChunk / SilenceChunkExpress formatted audio data or silence.
Writer / WriteCloser / WriteFuncDefine chunk output contract.
Track / TrackCtrlManage single-channel PCM input and volume/control status.
Mixer / NewMixerMix multiple tracks into a unified output format.
IOWriter / ChunkWriter / CopyAdapt between io stream and PCM chunks.

The PCM package is not responsible for codec, device selection, or network transport; these capabilities are combined through the codec, portaudio, and peer media layers.