quasimoto.enums package#

Module contents#

A module implementing enumeration interfaces for this package.

class quasimoto.enums.AudioFileTypes(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: StrEnum

An enumeration for supported file types.

WAVE = 'wav'#
class quasimoto.enums.ChunkType(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: StrEnum

An enumeration for different kinds of RIFF chunks.

DATA = 'data'#
FMT = 'fmt '#
ID3 = 'ID3 '#
LIST = 'LIST'#
RIFF = 'RIFF'#
WAVE = 'WAVE'#
static from_stream(stream: BinaryIO) ChunkType | None[source]#

Read the chunk type from a stream.

property is_container: bool#

Whether or not this is a container chunk type.

to_stream(stream: BinaryIO) None[source]#

Write the chunk header.