Results 1 to 2 of 2

Thread: Looping a midi

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    OK,

    I can play a midi now, but how do I loop it?? thank you!!!

  2. #2
    New Member
    Join Date
    Aug 1999
    Posts
    15

    Post

    Try something like this:

    Private Sub MediaPlayer1_EndOfStream(ByVal Result As Long)
    MediaPlayer1.filename = TheFile
    MediaPlayer1.Play
    '(this should keep playing the file again 'and again, until you stop it.
    End Sub

    Obviously, this assumes you are using the MediaPlayer
    Also, there is an attribute of this control that you can set the # of times to repeat:
    MediaPlayer1.PlayCount = x
    'where x is an integer; it will (or should
    'repeat the midi x number of times

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