Audio Format

class AudioFormat

Represents a format for audio samples. This class wraps struct GrooveAudioFormat.

sample_rate

Sample rate in Hz

channel_layout

ChannelLayout describing the channels carried in the format.

sample_format

SampleFormat describing the format of each sample.

clone(other)

Copy the attributes of another AudioFormat. After a clone, audio_fmt == other will be True.