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

Playing sounds?

 [1/9] from: rgaither:triad:rr at: 15-Mar-2001 17:34


Hi All, I think this was talked about, perhaps in jest but I need to know if I can play a sound via Core or View? I'm trying to write a monitoring utility that can "notify" me when something isn't right. It would be great if it could beep at me to let me know to take a look. Thanks, Rod. Rod Gaither Oak Ridge, NC - USA [rgaither--triad--rr--com]

 [2/9] from: bga:din:uem at: 11-May-2001 15:13


Em Friday, May 11 2001, 10:37:57, [ryan--christiansen--intellisol--com] ([ryan--christiansen--intellisol--com]) disse:
>Sorry, I'm not versed in the different WAV formats. Will REBOL play a wave >file from an audio CD?
Heh. Don't forget that a cdda-fs is standard in BeOS, but not in other OSs, so the question concerning WAV files on CDs may look weird to people who is not used to it. :) Anyway, the WAV format exposed by cdda-fs is RIFF WAV. -Bruno -- Bruno G. Albuquerque [bga--din--uem--br] BeDevId #15362 Grupo Brasileiro de Usuários de BeOS - Presidente http://www.bug-br.org.br Vote for ME -- I'm well-tapered, half-cocked, ill-conceived and TAX-DEFERRED!

 [3/9] from: ptretter:charter at: 11-May-2001 13:38


Not sure if this is a problem - but on Win2k: sndprt: open sound:// gives access error Paul Tretter

 [4/9] from: depotcity:telus at: 11-May-2001 12:22


sound:// requires latest view/pro upgrade. TBrownell

 [5/9] from: johnkenyon:iname at: 11-May-2001 15:50


Hi, Just tried to play a file with a space in the filename and got the following error message. Other wav files have been fine so far (and great fun :). (View/pro 1.2 licensed)
>> x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
** Access Error: Bad image data ** Near: x: load to-file "/c/winnt/media/windows NT Logon sound.wav" core 2.5 gives me -
>> x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
== [RIFF ¶ ] With trace on
>> x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
Trace: x: (set-word) Trace: load (word) Trace: to-file (word) Trace: "/c/winnt/media/windows NT Logon sound.wav" (string) Trace: to (word) Trace: (datatype) Trace: :value (get-word) Result: %/c/winnt/media/windows NT Logon sound.wav (file) Result: %/c/winnt/media/windows NT Logon sound.wav (file) ** Access Error: Trace: "Bad image data" (string) Bad image data ** Near: x: load to-file "/c/winnt/media/windows NT Logon sound.wav" Any thoughts? Cheers, John

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


[johnkenyon--iname--com] wrote:
> Hi, > Just tried to play a file with a space in the filename and got the
<<quoted lines omitted: 3>>
> ** Access Error: Bad image data > ** Near: x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
I've got the same error message for one .wav file, but not for another ones, so I discarded my e-mail message to the list, thinking my .wav file was corrupted. One other comment to 'load function. Carl - isn't it a little bit inconsistent? 'load automatically distinguishes .gif, .jpg, .png, .bmp, .wav by their internal structure, while we have to explicitly state load/library ... what is the difference? Maybe 'load could distinguis libraries automatically too? Anyway - Rebol's cool ... and I am "dead" - I don't want to program in anything else anymore :-)) Cheers, -pekr-

 [7/9] from: holger:rebol at: 11-May-2001 5:57


On Fri, May 11, 2001 at 03:50:06PM +1000, [johnkenyon--iname--com] wrote:
> Hi, > Just tried to play a file with a space in the filename and got the
<<quoted lines omitted: 3>>
> ** Access Error: Bad image data > ** Near: x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
At this time only standard, uncompressed PCM WAVs are supported. Compressed WAVs (Mu-Law, A-Law, AD-PCM) are not supported yet -- probably will be in a future version. For now use a utility like "sox" to convert WAVs to PCM. There is more information in http://www.rebol.com/docs/sound.html -- Holger Kruse [holger--rebol--com]

 [8/9] from: ryan:christiansen:intellisol at: 11-May-2001 8:37


Sorry, I'm not versed in the different WAV formats. Will REBOL play a wave file from an audio CD? -Ryan Holger Kruse <[holger--rebol] To: [rebol-list--rebol--com] .com> cc: Sent by: Subject: [REBOL] Re: Playing sounds rebol-bounce@ rebol.com 05/11/2001 07:57 AM Please respond to rebol-list On Fri, May 11, 2001 at 03:50:06PM +1000, [johnkenyon--iname--com] wrote:
> Hi, > Just tried to play a file with a space in the filename and got the
<<quoted lines omitted: 3>>
> ** Access Error: Bad image data > ** Near: x: load to-file "/c/winnt/media/windows NT Logon sound.wav"
At this time only standard, uncompressed PCM WAVs are supported. Compressed WAVs (Mu-Law, A-Law, AD-PCM) are not supported yet -- probably will be in a future version. For now use a utility like "sox" to convert WAVs to PCM. There is more information in http://www.rebol.com/docs/sound.html -- Holger Kruse [holger--rebol--com]

 [9/9] from: jeff:rebol at: 11-May-2001 8:29


Howdy, Petr:
> One other comment to 'load function. Carl - isn't it a > little bit inconsistent? 'load automatically distinguishes > .gif, .jpg, .png, .bmp, ..wav by their internal structure, > while we have to explicitly state load/library ... what is > the difference? Maybe 'load could distinguis libraries > automatically too?
Shared libraries across the platforms don't have a consistent internal structure and/or naming scheme-- so we "punted" (which is amero-slang for 'we took the easy way out' (-;) -jeff

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