ADX ADPCM Audio Codec
- class PyCriCodecsEx.adx.ADX[source]
Bases:
object
ADX class for decoding and encoding ADX files, pass the either adx file or wav file in bytes to either decode or encode respectively.
NOTE: Direct usage of this class is not recommended, use the ADXCodec wrapper instead.
- class PyCriCodecsEx.adx.ADXCodec(stream: str | bytes, filename: str = 'default.adx', bitdepth: int = 4, **kwargs)[source]
Bases:
ADX
Use this class for encoding and decoding ADX files, from and to WAV.
- __init__(stream: str | bytes, filename: str = 'default.adx', bitdepth: int = 4, **kwargs)[source]
Initializes the ADX encoder/decoder
- Parameters:
stream (str | bytes) – Path to the ADX or WAV file, or a BinaryIO stream. WAV files will be automatically encoded with the given settings first.
filename (str, optional) – Output filename. Defaults to “default.adx”.
bitdepth (int, optional) – Audio bit depth within [2,15]. Defaults to 4.