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

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading