0
0

Is this possible? I’m writing a music player in C#, so frequent calls to System::Update are out of the question for performance reasons. Namely, I need to know when a sound is done playing without polling.

  • You must to post comments
0
0

No, you dont just call system update for that either, there are a list of other things it does.

  • You must to post comments
0
0

I know, but I need it called in a loop to get a notification of when a sound is done playing, which consumes too many CPU cycles.

Edit: Ah, never mind, I figured out a better way to do what I wanted with subsounds. Fantastic. :)

  • You must to post comments
0
0

If you get 100% CPU usage inside the loop, that means you dont set time to other threads/processes to work. The way i know to workaround this is to call the sleep function (c, c++) or use Thread.Sleep(1) on c#. I dont know how to call it on vb6.
Using this approach, you may even tell your application how much you call the update method in one second…

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.