diwic / alsa-sys

Rust raw FFI bindings for ALSA
MIT License
15 stars 11 forks source link

Add SND_PCM_FORMAT_{DSD_U32_LE, DSD_U16_BE, DSD_U32_BE} formats #5

Closed danieljrmay closed 4 years ago

danieljrmay commented 4 years ago

I would like to add some DSD formats. I use one of them (DSD_U32_BE) in a very basic audio player written in Rust. It plays DSF files (which contain DSD data) by outputting the DSD data directly to a DAC without having to convert to PCM.

I have a corresponding proposed update to diwic/alsa-rs which I will submit if you accept this one.

Thank you for all your work on this library — I’ve been having fun doing some audio programming in Rust and your efforts have made that all possible! :smiley:

diwic commented 4 years ago

Merged, thanks!