|
Anoki Genosse
Registered User
Join date: 29 May 2006
Posts: 2
|
06-05-2006 15:35
Alrighty, I'm a relatively new player but I have some background in programming. I came up with an idea to sell something- a shortwave radio. I'm an amateur radio operator in RL, and I think it would be cool to build a SL replica of my ham radio, and link it back to streaming audio coming out of the real thing. I figured it wouldn't be any more difficult than building a web-radio object, and there are hundreds of those. However, I've noticed that most of the web radio objects simply use the built-in parcel streaming audio support rather than producing their own sound. This isn't usually the way I'd expect people to listen to shortwave radio, as it tends to be a bit cacophanous at times. Is it possible to create an object that produces it's own audio in the way I described above, and if so, how would I go about doing it? I also wanted to eventually add a way to control the RL radio. Still working on that one.  Thanks for your help in advance, es 73's de KF6CZG
|
|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
06-05-2006 15:42
Yeah, unfortunately at this time there's no way to stream sound into the game via an object. Its a project many people, including myself, have contemplated. When the llHttpRequest was included in the latest release, I even attempted to load sound data into the 2k of space that a request can hold but alas, SL won't recognize the llHTTPrequest buffer as a sound source. The best thing we can do at this point, other than owning land and streaming that way, is to use a llLoadURL("http://webaddresshere"  to load the webpage of the stream. You can even get fancy with it by having your remote webpage do a page redirect to the stream of your music/radio online. The only kind of request you can pass using llLoadURL is http, but if you have a php script you could have <? header("Location:http://www.loadmymusic.com"); ?>
Where you put the url of your music after Location. This will then redirect your web browser to open whatever program it has set as default player for a particular stream, whether quicktime, winamp, etc.
|
|
Aki Clutterbuck
Registered User
Join date: 30 Mar 2006
Posts: 5
|
more info?
06-10-2006 21:45
From: Geuis Dassin The best thing we can do at this point, other than owning land and streaming that way, is to use a llLoadURL("http://webaddresshere"  to load the webpage of the stream. You can even get fancy with it by having your remote webpage do a page redirect to the stream of your music/radio online. The only kind of request you can pass using llLoadURL is http, but if you have a php script you could have Where you put the url of your music after Location. This will then redirect your web browser to open whatever program it has set as default player for a particular stream, whether quicktime, winamp, etc. Can you explain this a bit further? This is something I am interested in as well since I rent an apartment but like to entertain. hard to do without music.
|