Thread: Playing a .mid

  1. #1
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Banks of the River Styx

    Playing a .mid

    Is there any way with WindowsAPI to play a .mid file? I don't want to use DirectX if at all possible...

    Anyways, Thanks In Advance.

    EDIT: Okay... if I could just play it (manually) note by note that'd be okay. I have to update something every note as well, and it's a fairly short and easy piece...
    Last edited by Cactus_Hugger; 07-03-2003 at 08:09 PM.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Not sure, but does PlaySound() work for midis?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    MSDN says that PlaySound() only works for wave files. A quick MSDN search found this: Playing MIDI Files

    You should search before posting threads like this.
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PC or Console gamers, what are you playing?
    By indigo0086 in forum A Brief History of
    Replies: 119
    Last Post: 04-14-2008, 08:17 AM
  2. How do I keep the sounds playing?
    By Queatrix in forum Windows Programming
    Replies: 0
    Last Post: 07-21-2007, 10:19 AM
  3. Gamers: what are you playing these days?
    By axon in forum A Brief History of
    Replies: 50
    Last Post: 12-11-2003, 05:51 PM
  4. Playing mp3 files in Mac OS X
    By tek in forum C++ Programming
    Replies: 23
    Last Post: 08-30-2003, 01:42 PM