samedi 3 décembre 2022

Playing sound by its path/file name

is it possible to play(or get the reference of) a sound by it’s path/filename?

more info: i have around 300 sound files each with a specific name that are all stored inside an array of strings, i need to take a string from the array and play the sound with that name

I've tried PlaySound(a.name, NULL, SND_FILENAME | SND_SYNC); PlaySound(TEXT(a.name), NULL, SND_FILENAME | SND_SYNC);

Aucun commentaire:

Enregistrer un commentaire