Home > Software engineering >  McISendString multi-threaded play music, every time is only the first thread of music was playing, c
McISendString multi-threaded play music, every time is only the first thread of music was playing, c

Time:09-19



Tried two music can be played in a thread (broadcast at the same time, is mixing), but creating two threads each thread to play a music, appear problem, just play the first thread of music, the second thread music, there is no place; Beginners MFC, bosses give directions, thank!

CodePudding user response:

1 normal execution TRACE the thread?
2 the McISendString return values

CodePudding user response:

Added Sleep function, thread in, now found that as long as Sleep long enough, the second thread is can play music, I guess is not permitted to instant McISendString call many times at the same time,,,,,,,,,,,,,, see figure

CodePudding user response:

CodePudding user response:

reference 1st floor zgl7903 response:
1 normal execution TRACE the thread?
2 the McISendString return values
process in, should be a function

CodePudding user response:

A system, there is only one horn,
Under normal circumstances, should first stop in front of the play, and then start a new play,
Go and see the inside of the suspended continue instructions

CodePudding user response:

Do you want to play at the same time multiple voice? May have a look at https://blog.csdn.net/frankiewang008/article/details/13288655
  • Related