-
Dec 14th, 2009, 09:45 AM
#1
Thread Starter
Interweb adm/o/distrator
[RESOLVED] Play Music files simultaneously?
I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see. Anyway any ideas how to make each play at once?
Note this was an attempt in C#:
Code:
private void PlayButton_Click(object sender, EventArgs e)
{
if (SongsListBox.Items.Count > 0)
{
foreach (string s in SongsListBox.Items)
{
Media media = new Media();
media.OpenMediaFile(s);
media.PlayMediaFile();
}
}
}
Media class is fine and the command string parsed to mciSendString is correct its just that they don't play simultaneously
Any help would be great!
-
Dec 14th, 2009, 10:10 AM
#2
Thread Starter
Interweb adm/o/distrator
Re: Play Music files simultaneously?
Im guessing threading maybe? Any ideas?
-
Dec 14th, 2009, 10:39 AM
#3
Thread Starter
Interweb adm/o/distrator
Re: [RESOLVED] Play Music files simultaneously?
Solved...
never coding this late again brain cells must hate me
Sorry for the inconvenience.
-
Dec 14th, 2009, 12:55 PM
#4
Re: [RESOLVED] Play Music files simultaneously?
It's not just your brain cells that will hate you if you don't tell us how you did it.
BB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|