[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!
Re: Play Music files simultaneously?
Im guessing threading maybe? Any ideas?
Re: [RESOLVED] Play Music files simultaneously?
Solved...
never coding this late again brain cells must hate me :(
Sorry for the inconvenience.
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:p.
BB