Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] How to play a sound...

 [1/16] from: carl:rebol at: 10-May-2001 20:34


Here's how: port: open sound:// sound: load %gumby.wav insert port sound <sound starts to play...> How to get it? 1) Download View/Pro 1.2 (on rebol.com right now) 2) Send us that $49 you've been promising. Gets you the View/Pro key. You'll need it to play sound. And then, you can encrypt your sounds too. Just in case. -Carl

 [2/16] from: holger:rebol at: 11-May-2001 6:02


On Fri, May 11, 2001 at 04:35:36PM +1200, Graham Chiu wrote:
> On Thu, 10 May 2001 20:34:38 -0700 > > Does it do > > insert port load %sound.mp3 ?
No. Only uncompressed sounds at this time. Sound support is intended as support for GUIs, games etc., not for streaming. "Load"ing and uncompressing a typical MP3 with a 3-minute song would uncompress to over 50 MB of RAM. You probably don't want that :-). -- Holger Kruse [holger--rebol--com]

 [3/16] from: holger:rebol at: 11-May-2001 6:03


On Fri, May 11, 2001 at 09:46:34AM +0200, Richard Smolak wrote:
> Great!!!!!!!!!!! > I'll buy the /View key ASAP!
<<quoted lines omitted: 3>>
> unregistered version of /View should have ignored the sound code > automatically without interupting the script...any thougths?
error? try [sndprt: open sound://] etc. Same for 'insert, because that can cause errors as well, if the target system supports sound in general, but cannot play your sound because of hardware limitations. -- Holger Kruse [holger--rebol--com]

 [4/16] from: ptretter::charter::net at: 10-May-2001 23:20


That is way to cool. Didn't know that one. What else is in there. Can I play some mpeg's also. This is so cool, $49.00 everyone, come on, annie up..... Paul Tretter

 [5/16] from: jeff:rebol at: 11-May-2001 8:39


Howdy, Graham:
> Does it do > > insert port load %sound.mp3 ?
You could also build a shared library that handles your mp3s. Shouldn't be too difficult with the piles of public domain console based players available. mp3-lib: load/library %mp3-lib.so play-mp3: make routine! [file [string!]] mp3-lib "mp3_play" foreach file load %/my/mp3-dir/ [ play-mp3 form file ] ;-- Of course, you could also just use CALL to ; accomplish the same ... -jeff

 [6/16] from: cyphre:volny:cz at: 11-May-2001 9:46


Great!!!!!!!!!!! I'll buy the /View key ASAP! Just one question comes to my mind: How can simply protect my script which is using sound features from errors when the script is running on unregistered version of /View? Maybe unregistered version of /View should have ignored the sound code automatically without interupting the script...any thougths? regards Cyphre

 [7/16] from: cyphre:volny:cz at: 11-May-2001 15:20


Thanks Holger, It looks like there will be growing lots of REBOL trackers/sythesizers/sound-systems in near future :-) Keep up the cool work! regards, Cyphre

 [8/16] from: gchiu:compkarori at: 11-May-2001 16:35


On Thu, 10 May 2001 20:34:38 -0700 Carl Sassenrath <[carl--rebol--com]> wrote:
> port: open sound:// > sound: load %gumby.wav > insert port sound
Does it do insert port load %sound.mp3 ?
> How to get it? > > 1) Download View/Pro 1.2 (on rebol.com right now)
Still called view-pro031.zip? -- Graham Chiu

 [9/16] from: carl:rebol at: 11-May-2001 11:48


Actually, I think it can be done... need to think more about it. At 5/11/01 06:35 AM +0200, you wrote:

 [10/16] from: gchiu:compkarori at: 12-May-2001 9:10


On Fri, 11 May 2001 11:48:36 -0700 Carl Sassenrath <[carl--rebol--com]> wrote:
> Actually, I think it can be done... need to think more > about it.
MS IE seems to constantly check for system upgrades etc when invoked. -- Graham Chiu

 [11/16] from: petr:krenzelok:trz:cz at: 11-May-2001 6:35


Carl Sassenrath wrote:
> Here's how: > port: open sound://
<<quoted lines omitted: 3>>
> How to get it? > 1) Download View/Pro 1.2 (on rebol.com right now)
heh, OK. Carl, we need some notification mechanism. It could be done as one other parameter of user config. Simply said - what about automatic check for new version, request for download or at least any kind of dekstop GUI element showing us we are not using up-to-date version?
> 2) Send us that $49 you've been promising.
I just hope my VISA card transfer was OK :-)
> Gets > you the View/Pro key. You'll need it to play > sound.
Eh? So MM capabilities not in free version? ... hmm, at least something at beginning ...
> And then, you can encrypt your sounds too. > Just in case. >
Thanks, -pekr-

 [12/16] from: larry:ecotope at: 10-May-2001 21:37


Replying to my own post again. I downloaded the view.exe version and ran it from a network drive. Somehow it thought the rebol dir was it's home, and the user.r in that directory had protect-system in it. All fixed now. -Larry

 [13/16] from: depotcity:telus at: 10-May-2001 22:37


That is too cool. Any chance of getting MP3 support? TBrownell

 [14/16] from: depotcity:telus at: 10-May-2001 22:41


Better yet, STREAMING mp3! PS - and while your at it, throw in some streaming mpeg4 video 8}

 [15/16] from: petr:krenzelok:trz:cz at: 11-May-2001 8:28


Terry Brownell wrote:
> Better yet, STREAMING mp3! > > PS - and while your at it, throw in some streaming mpeg4 video 8}
Hey ;-) I know all the features would be cool, but I don't want more features in Rebol, before modules and dynamic component systems are available! We are growin fast :-) 514 KB rebol.exe - what a beast :-) Cheers, -pekr-

 [16/16] from: larry:ecotope at: 10-May-2001 21:06


Hi Carl Thats great! I wondered what you guys were doing in your spare time ;-) One small problem with the example:
>> port: open sound:// >> sound: load %chord.wav
** Script Error: Word sound is protected, cannot modify ** Near: sound: load %chord.wav
>> snd: load %chord.wav >> insert port snd
== 24231 Bong! It works. Does it support other sound file types .au, etc.? -Larry

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted