Playing Audio

Using Omxplayer And System This will play an audio file but it won’t return until playing is complete. #include <stdlib.h> system(“omxplayer /home/pi/projects/my_project/audio/my_audio.wav”);   Play On A Background Thread This will trigger omxplayer on a separate thread and return immediately so your program execution doesn’t stall until the file has finished playing.   You can even use this multiple […]

Read More