Sign in to follow this  
Followers 0
Juppie7

SoundPlay(...) from the web?

6 posts in this topic

#1 ·  Posted (edited)

about a year ago or so (more like 4 months) this worked fine... liike...

SoundPlay("http://www.ilovewavs.com/Holidays/July4/AmericanPatrol.wav",1) ; supposed to play the wav, and then continue executing

But for some reason this doesnt work for me anymore. It just sits there silent for about 30 milliseconds, and then continues executing like nothing happened. No @error or @extended... Any know why this happen?

Edited by Juppie7

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Dude the file doesn't exist....

Eh, didn't even know you could do that anyways.... And IMO, you can't. Try this:

$url = "http://www.ilovewavs.com/comedy/Comm/beaver2.wav"
$to = "test2.wav"
$size = InetGetSize ($url)
InetGet ($url, $to, 1, 1)
ProgressOn ("Downloading Sound...", "Please wait while we download the requested sound.")
While @InetGetActive
  $percent = Round ((@InetGetBytesRead/$size)*100, 0)
  ProgressSet ($percent, "Downloaded " & @InetGetBytesRead/1024 & "/" & $size/1024 & "KB (" & $percent & "%)")
  Sleep (50)
Wend
ProgressOff ()
SoundPlay ($to, 1)
Edited by Bert

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I knew someone would call me on that. I just edited my post, cause I was trying to get a technical answer.

I was worried that if I gave you the actual link: http://www.ilovewavs.com/Holidays/July4/Am...an%20Patrol.wav

you would say "its cuz of the %20". Wel its not cuz i am using other sounds too from same site or different ones that dont have a space in file name.

so yea. ITs http://www.ilovewavs.com/Holidays/July4/Am...an%20Patrol.wav

welp nothing for me to worry about now, since both of those items are covered now. All that left is orig questioin

Edited by Juppie7

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

woot ty, that works great muttley

Edited by Juppie7

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0