I have written an application which converts an integer into its spoken English equivalent. This code passes filenames to be played by the PlaySoundA
function in the Windows API:
vector<string> sounds = NumberConvert(atol(argv[1]));
int i;
for (i=0; i < sounds.size() - 1; i++) {
sounds[i].append(".wav");
PlaySoundA(sounds[i].c_str(), 0, SND_SYNC);
}
Would it be possible to create a wrapper function which would use the PortAudio API in the background, to maintain cross platform compatibility?
Aucun commentaire:
Enregistrer un commentaire