What is the best api to play audio files? - Raspberry Pi Forums


hi guys, coding basic remote controlled robot , have little problem. need play audio files , after few researches, found ways don't know best. files's format mp3 or ogg.

possible have little advice, please?

cordially.

the convenient 1 once posted here somewhere else, goes like

code: select all

#include <cstdlib> using namespace std;   void playsound(std::string filename){    system( ("aplay " + filename).c_str() ); }  // ... playsound("m1.wav"); 


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'