Playing a MIDI file when doc opens 
Author Message
 Playing a MIDI file when doc opens


I've now managed to work out how to play a MIDI file using the mciSendString
API calls and the document_open event.  This is okay if I'm wanting to play
a MIDI file saved on the hard drive, but how do I reference a MIDI file
embedded within the document ??

The code I've used to play the file is as follows :-

Dim ret As Integer

   ret = mciSendString(_
    "open c:\windows\media\canyon.mid type sequencer alias canyon", 0&, 0,
   ret = mciSendString("play canyon wait", 0&, 0, 0)
   ret = mciSendString("close canyon", 0&, 0, 0)

   End Sub

So how do I reference an embedded file ???


Sat, 24 Aug 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. How to Auto play a MIDI file when document opens

2. Playing WAV files and MIDI files

3. MIDI playing and multiple MIDI's.

4. Auto close open doc when opening another doc

5. Playing Midi files from QB 4.5

6. Playing Midi Files In quickbasic 4.5

7. Playing Midi Files on the SB in Quickbasic 4.5

8. Playing MIDI files with QBASIC

9. Routines that play MIDI files...

10. Playing Midi Files

11. Playing MIDI files

12. MS Access 97 - playing a MIDI file


Powered by phpBB® Forum Software