arduino-audio-tools
Loading...
Searching...
No Matches
CodecDSF.h File Reference

DSF (DSD Stream File) format decoder and encoder implementation. More...

Go to the source code of this file.

Classes

struct  DSFEncoder::ChannelModState
class  DSFDecoder
 Decodes DSF files containing DSD audio and converts to PCM. More...
class  DSFEncoder
 DSF (DSD Stream File) format encoder. More...
 Metadata structure for DSF (DSD Stream File) format. More...

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.

Functions

struct __attribute__ ((packed)) DSDPrefix
 DSF file prefix containing file identification and basic information.

Detailed Description

DSF (DSD Stream File) format decoder and encoder implementation.

Author
pschatzmann

Decoder: converts DSD audio from DSF files to PCM format. Encoder: converts PCM audio to DSD and writes DSF files.

Key features:

  • DSF file header parsing, validation, and generation
  • Correct block-level channel de-interleaving per DSF spec
  • DSD-to-PCM via bit counting with cascaded Butterworth anti-aliasing
  • PCM-to-DSD via 2nd order delta-sigma modulation with interpolation
  • Streaming-compatible operation for real-time processing
  • Support for mono and multi-channel DSD files (DSD64 and higher)