audio - VB.NET: Playing song and adding to queue while iterating in main function -


i'm trying play song or add song audio queue while main function executes in visual basic. here's pseudo code illustrate problem:

// { // stuff if(goalreached) {      if (songisplaying) playagainafter();     else playsong(); } // } while // end 

so while main function iterating, need song playing, , if it's playing, need queue it.

i've been trying use audio.play("song.wav", backgroundloop) , timer "pseudo-queue" song adding timer, seems bad solution. i've thought using counter, wouldn't work because need executing main function concurrently. there i'm not thinking of?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -