Code: Select all
#include <cstdlib>
using namespace std;
void PlaySound(std::string filename){
system( ("aplay " + filename).c_str() );
}
// ...
PlaySound("m1.wav");
do you mean Gordon Henderson's wiringPi / wiringSerial by that?especially if you want to use them in anything other than a trivial way decided by someone else.