Trying to play .wav file in C with SDL2.0

Question

Hello all!

So far, my .c file can detect when I press a GPIO button.

I want to play a .wav file immediately after, for multiple buttons.

I thought alsa would be the best but it looks quite difficult so I tried SDL. There is no real installation guide for raspberry pi and I am not able to compile my program I wrote based off of this tutorial.

Any advice and suggestion is appreciated, Thanks.

Posted Jul 16, 2017, 9:59 PM UTC

711
Loading comments…