Results 1 to 2 of 2

Thread: Playing cd tracks

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987

    Post

    Does anybody know how to play .cda tracks directly from the CD using vb5.

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    12

    Post

    Hey Young Buck,
    Drop a Multi-Media control on a form and place this in the click event of a button:
    Code:
    Private Sub Command1_Click()
       MMControl1.Notify = False
       MMControl1.Wait = True
       MMControl1.Shareable = False
       MMControl1.DeviceType = "CDAudio"
       MMControl1.FileName = "G:\Track01.cda" ' G is of course the drive of my CDROM
    
       ' Open the MCI WaveAudio device.
       MMControl1.Command = "Open"
    End Sub
    Now you can rock and roll and code at the same time.

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