Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
playing files sequentially

richard_iii
Registered User
Quote
2012-12-16 16:52:51

I am trying to play a set of songs one after another but am having an issue with all the songs playing at the same time, I have tried using a while loop to wait for one track ends before starting the next one but to no avail.

currPlayingSound = irrKlangEngine.Play2D(fileName, false);

while (currPlayingSound.PlayPosition!=0)
while (currPlayingSound.PlayPosition<currPlayingSound.PlayLength) While(!currPlayingSound.Finished)
None have worked.
any thoughts how to wait for one file to finish before starting another one?


niko
Moderator
Quote
2012-12-19 09:52:40

This basically is the right approache, although not the best. Inside your look, were you also waiting? With a call like sleep()?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact