Is there a way i can send PCM (.wav) data to an audio device on raspberry pi? I am looking for something like
FILE* file_out = fopen("/dev/snd/pcmC0D0p", "wb");
so i can easily open the device in binary mode (using c code), and write samples to it.
I want to take the samples from a .wav file, process them, and send them directly to the sound card for playing (without writing them in another output .wav file). Of course, i will need to create the header of the .wav, so the sound driver knows sample rate, number of channels, bits/sample...
I am trying to avoid using other libraries, but i think this is the way i'm heading now.