|
-
May 31st, 2002, 10:14 PM
#1
Thread Starter
Lively Member
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?
-
Jun 1st, 2002, 04:59 AM
#2
Frenzied Member
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!
-
Jun 1st, 2002, 05:15 AM
#3
Frenzied Member
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!
-
Jun 1st, 2002, 06:37 AM
#4
Thread Starter
Lively Member
How do I use/where are the mci control and the Playsound API?
-
Jun 1st, 2002, 07:08 AM
#5
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|