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.
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
Post a Comment