Playing a .mid

This is a discussion on Playing a .mid within the Windows Programming forums, part of the Platform Specific Boards category; Is there any way with WindowsAPI to play a .mid file? I don't want to use DirectX if at all ...

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

    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 09: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
    Posts
    2,879
    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
    Posts
    1,401
    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.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

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 Cprogramming.com
    Replies: 119
    Last Post: 04-14-2008, 09:17 AM
  2. How do I keep the sounds playing?
    By Queatrix in forum Windows Programming
    Replies: 0
    Last Post: 07-21-2007, 11:19 AM
  3. Gamers: what are you playing these days?
    By axon in forum A Brief History of Cprogramming.com
    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, 02:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21