Constants & Exceptions¶
Error handling¶
- class pyminidsp.MiniDSPError(code, func_name, message)[source]¶
Bases:
RuntimeErrorRaised when the miniDSP C library reports an error.
- pyminidsp.ERR_NULL_POINTER¶
A required pointer argument was NULL (1).
- pyminidsp.ERR_INVALID_SIZE¶
An array length or count was zero or otherwise invalid (2).
- pyminidsp.ERR_INVALID_RANGE¶
A numeric argument was outside the valid range (3).
- pyminidsp.ERR_ALLOC_FAILED¶
A memory allocation (malloc/calloc) failed (4).
Filter types¶
- pyminidsp.LPF¶
Low-pass filter (0).
- pyminidsp.HPF¶
High-pass filter (1).
- pyminidsp.BPF¶
Band-pass filter (2).
- pyminidsp.NOTCH¶
Notch filter (3).
- pyminidsp.PEQ¶
Peaking EQ (4).
- pyminidsp.LSH¶
Low shelf (5).
- pyminidsp.HSH¶
High shelf (6).
Steganography methods¶
- pyminidsp.STEG_LSB¶
Least-significant-bit encoding (0).
- pyminidsp.STEG_FREQ_BAND¶
Near-ultrasonic frequency-band modulation / BFSK (1).
- pyminidsp.STEG_SPECTEXT¶
Hybrid LSB + spectrogram text art encoding (2).
- pyminidsp.STEG_TYPE_TEXT¶
Payload type: text / null-terminated string (0).
- pyminidsp.STEG_TYPE_BINARY¶
Payload type: binary / raw bytes (1).
GCC weighting types¶
- pyminidsp.GCC_SIMP¶
Simple 1/N weighting — basic cross-correlation (0).
- pyminidsp.GCC_PHAT¶
Phase Transform weighting — sharper peaks, more robust to noise (1).