I have an audio add-on card to my Raspi Zero called "raspiaudio", it seems to be reporting as hifiberry, although it is not. It's some NXP DAC conencted via I²C, and the driver was apparently in the kernel that came with the current Raspbian that I downloaded and installed a few days ago (I used the image without a desktop)

I have never done anything with audio on Linux, so I can't ask more precisely. I only know of the existence of a whole big audio subsystem in Linux called ALSA, and more stuff on top of it, e.g. PulseAudio.

I would like to stream audio samples to that DAC, but, if possible, circumvent any mixing or meddling with my samples - I want the DAC to see the exact numerical values I send it. A secondary issue would be the preference of low latency / small buffers - where low is, I guess something around a few milliseconds, as it is about human interaction and the prevention of a perceptible lag.

Can I do that in Linux, using the driver already provided by the kernel? If so - how?

Edit: Oh, to be clear - I want to do that from a programming language like C/C++, I'm not looking for an "app". I guess I could have asked at stackoverflow, but thought the concentration of people knowing of the maybe special circumstances of the Raspi here would be higher.

  • Welcome to Raspberry Pi :-) But your question is too broad and opinion based. Such questions are flagged and may be closed. This site isn't made for brainstorming and discuss general issues. It is made to do one specific question that can be answered detailed, something like: "I have this program to get sound out of my DAC but there is no sound. What I'm doing wrong?". You may visit the Help Center to get an idea how things work here. – Ingo Apr 2 '19 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.