Streaming Audio


[ Zettels Traum ] [ search / suche ]

von dp am 06.Maerz 97 um 01:17:38:

zu: Perlen aus dem Strom der Nachrichten im direct_L von Daniel am 22.Dezember 96 um 02:00:59:

>>I was wondering how you were able to stream the audio off of your ftp site
>>and into the shockwave movie? Could you post that snippet of code? I would
>>really appreciate it. By the way do you guys do alot of soundeffects? I am
>>looking for a large soundeffects library to purchase and was wondering if you
>>sell something like that.
>>
>>
>>take care,
>>
>>
>>devin M. arnold

No problem, here it is. Enjoy!

Rob Yale


-- stop the current file, since we are selecting another one.
stop (member "shockaudio")

-- get the name of the file to play.
audioName

set the URL of member "shockaudio" = "ftp.whatever.com/pub/users/whatever/swa/" & gSwaName

set the preLoadTime of member "shockaudio" = 15


Play (member "shockaudio")


updateStage

end if


end


----------------------------------------------------------------------------
on audioName

global gSelect, gSwaName

put "" into gSwaName
-- put "gSelect in audioName=" gSelect

case (gSelect) of


"Sonic Boon Demo part A": put "boona.swa" into gSwaName
"Sonic Boon Demo part B": put "boonb.swa" into gSwaName
"Sonic Boon Demo part C": put "boonc.swa" into gSwaName
"Sonic Boon Demo part D": put "boond.swa" into gSwaName
"Sonic Boon Demo part E": put "boone.swa" into gSwaName
"Sonic Boon Demo part F": put "boonf.swa" into gSwaName
"Sonic Science Foley Footsteps": put "footsteps.swa" into gSwaName
"Movin' Up - D. Krystal": put "movin.swa" into gSwaName
"Cool Daddy - D. Krystal": put "cool.swa" into gSwaName
"Tenderfoot - R. Yale": put "tenderfoot.swa" into gSwaName
"Three's Company - R. Yale": put "threes.swa" into gSwaName
"The Dead March - R. Yale/D. Krystal": put "dead.swa" into gSwaName
"The River Styx - A. McNeill": put "riverstyx.swa" into gSwaName
"Midnight Black Mass - G. Sheard": put "blackmass.swa" into gSwaName
"Into the Crypt - G. Sheard": put "thecrypt.swa" into gSwaName
"The Birds - A. Currim": put "thebirds.swa" into gSwaName


end case
end audioName

----------------------------------------------------------------------------
on getStatus
global gStatus
put the state of member "shockaudio" into status

case (status) of

0: put "Stopped" into gStatus
1: put "Loading" into gStatus
3: put "Playing" into gStatus
4: put "Paused" into gStatus
5: put "Done" into gStatus
stop (member "shockaudio")
end case

end getStatus

----------------------------------------------------------------------------
on stopmovie
stop (member "shockaudio")
put " " into field "fb"
put "----" into field "status"
end
"Oh, pooh to Hobbes! Mountains are not pyramids
and trees are not cones. God must love gunnery
and architecture if Euclid is his only geometry."


Thomasina Coverly




Dazu:























D. Plänitz