AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > Looping through MP3 files in VB.Net

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 10/17/2007
Subject: Looping through MP3 files in VB.Net

Question
Salam. I want to play files like d1.mp3, d2.mp3, d3.mp3,.....,d9.mp3 continuously from d1 to d9. I want each to begin after the last one had finished playing. What I have achieved so far is that the loop only plays the last file and not the earlier ones. Please, give me some idea. I am new to >net. I am just moving from VB6 and most commands in VB6 do not work in .Net. Thank you.

Answer
I guess that you are not putting delay or wait statements inside your loop which actually waits for each file to finish first and then move on. You need to make blocking calls to the API which is playing the files. Otherwise if you know the length for each file you can simply put a time delay loop inside your main loop to wait for each file to finish. The controls that are normally used to play these files offer the progress of how much the file has been played you can also utilize this to cause a delay or wait.

Hope that helps.

Regards,
Rizwan

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.