splashscreen sound

  • Thread starter Please help James
  • Start date
P

Please help James

I have a melody (midi) that I would like to play when the splashscreen opens,
does anyone know how to do this? Thanks!
 
P

Please help James

Douglas, I am trying to add the midi file to a custom splash screen and I
reviewed that website.....isn't there an easier way of adding the midi file
to play when you opne the custom splashscreen?
 
D

Douglas J Steele

Simply copy everything between Code Start and Code End into a module and
save the module. (Make sure you don't name the module the same as any of the
routines in it)

In your custom splashscreen, you need 1 line of code:

Call fPlayStuff(strMIDIFile)

(where strMIDIFile contains the complete path to your MIDI file)

To stop it from playing, you also need 1 line of code:

Call fStopStuff(strMIDIFile)

I don't think it gets any simpler than that....
 
P

Please help James

Douglas, I keep getting a debugging error...you do type the 1 line of code in
the event procedure open forms right? I guess it doesn't recognize 'call
fplaystuff', any advice?
 
P

Please help James

Douglas, after playing around with the code lines....what you said finally
sunk in, the step that finally made it work was changing the last line of the
module to match the first line in the splashscreen code. Thanks for your
help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top