Results 1 to 3 of 3

Thread: Integrating music into an app

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Lightbulb

    Code:
    Private Sub Command1_Click()
    MMControl1.Notify = False
    MMControl1.Wait = True
    MMControl1.Shareable = False
    MMControl1.DeviceType = "WaveAudio"
    MMControl1.Command = "Open"
    MMControl1.filename = "c:\windows\media\done.wav"
    MMControl1.Command = "Play"
    End Sub
    The above opens and plays an external wav file. Is there any way to integrate a wav into an app and play it straight from the app, or even any way to integrate the wav into the app and then install it into a directory on the computer? Anything to do with OLEs? I don't know - that's why I'm asking!!!

    Cheers
    Sam

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    No, you don't need OLE. If you're planning on distributing your application, just include the done.wav file in your CAB when you package your program. If you copy the file to the same directory as your application, you can use App.path and this will insure that no matter where the user install your program, the wave file will run.
    I'm not sure if that answered your question or not. If it didn't, let me know. I'll try again.

  3. #3
    Guest

    Another answer

    Or include the .wav as a resource file . Does add to the over-head, but what the hell we are in dll hell as it is

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