I'm doing a project that require the user to type in the phonetic sounds
for example, "th". then the program will play a wave file that produce th sounds.
As there are many different wave files for a phonetic sounds, i decided to group them into separate files, which means it would not be in the same folder of the .exe directory. In this case how do i play the sound that is from another file?
Here is the segment that i thought could work but it didnt.. please help me!
FILENAME1 = strcat(text_data, ".wav"); FILENAME2 = strcat("wav" ,FILENAME1); printf ("%s", FILENAME2); PlaySound(TEXT(FILENAME2), NULL, SND_SYNC);
The text_data contains what the user type. such as "th". so it will play the wave file. th.wav. Is it possible to play it from another folder? so i can group various wav files into categories.
so it will be somthing like this:;
... ... Debug (contains the .exe file) --> consonants --> th.wav (this is the one i want to play but it will not be in the same directory as the .exe file.
please help me. thanks a lot!