Results 1 to 4 of 4

Thread: background sounds

  1. #1
    Techi
    Guest

    background sounds

    The aim of this is to allow me to play midi music in the background of a tile based bitblt RPG.

    The only trouble is that the program always has errors in when it comes to looping the midi.

    The reason i need this is because i plan to use an array of maps each over 100 x 100 tiles, people might spend longer than 3 minuits roaming around trying to solve the built in puzzles.

    check out the attatchmet to see if you can help, links are also apreciated!
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Sep 2001
    Posts
    74

    Smile hi

    I am also designing an RPG using bit blit. I used Directx 7 for the sound though. It works well with .wav files but I don't know about midi. Directx just seemed way easier to use then any other of the methods of creating multi channel sound. If you want e-mail me and I'll send you my music code which is pretty standard like most direct sound tutorials and just because you arn't using directx for the graphics won't be problematic at all. [email protected]

    The one disadvantage to DirectX is it can't read from your Resource file until its been fully compiled.
    All will fall before the might of the Black Sashi...

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Use DMusic 7 or DMusic 8 for your MIDIs, it has a loop flag that you can set, alternatively every game loop you can check to see if it's finished.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    You could also use the Windows Media Player control, it's as easy as WMP.Play music.mid (you can also set a property so it loops)
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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