Results 1 to 4 of 4

Thread: [RESOLVED] Play Music files simultaneously?

  1. #1

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Resolved [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!

  2. #2

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Play Music files simultaneously?

    Im guessing threading maybe? Any ideas?

  3. #3

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: [RESOLVED] Play Music files simultaneously?

    Solved...

    never coding this late again brain cells must hate me

    Sorry for the inconvenience.

  4. #4
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    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
  •  



Click Here to Expand Forum to Full Width