Jump to content

SoundPlay(...) from the web?


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...