How can you fix this error from mciSendString() and make it play a sound?
问题 I wish to use mciSendString to play a basic wav file, from a point say 20 seconds from the beginning of the audio. I have tried using it to just open and play a basic wav file in the same directory as the program, however to no avail. This is the basic code I have: int main() { char lpszReturnString[16384]; MCI_PLAY_PARMS song = { NULL, 0, 15 }; MCIERROR open = mciSendString("open \"C:\\Users\\ethan\\source\\repos\\Project2\\Project2\\America.wav\" type waveaudio alias America",