Results 1 to 5 of 5

Thread: Sound and Random

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    2 miles from everywhere
    Posts
    80

    Sound and Random

    1.Why does a supposedely random number (number * rnd) always load my objects in the exact same place every time?

    2.Whats the simplest way to put in sound?

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I don't really know what you mean by loading the same thing into the same place but I guess putting a
    randomize timer
    over the line with the rnd statement would help.

    For a real simple way to play sound you could use the mci control or look into the PlaySound API.
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I just found something Rick Bull posted in another thread take a look
    http://www.vbforums.com/showthread.p...hreadid=174934
    it explains playing sound
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    2 miles from everywhere
    Posts
    80
    How do I use/where are the mci control and the Playsound API?

  5. #5
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    for the mci control right click the toolbar (the bar with the little icons for buttons, picturboxes, etc..) and go to components, there you can add the MCI control (maybe under microsoft MCI control)
    for the API you could just copy the code that Rick Bull posted and than use it like
    PlaySound "C:\windows\media\ring.wav"
    Sanity is a full time job

    Puh das war harter Stoff!

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