How to play a sound with Rebol 2 on Mac OS X

101 Views Asked by At

The feature that is missing is to play sound. I'm thinking of calling a system library or a terminal command that would accept the sound name as a parameter.

The goal is to get some sound from, for example, a button click.

PS. I'm using Rebol/view on an iBook G3 with Mac OS X Panther.

1

There are 1 best solutions below

2
draegtun On

Unfortunately the Rebol sound port (sound://) isn't supported on MacOS / OSX.

Two workarounds that come to mind:

1) Basic terminal bell

prin #"^G"

2) call out to a sound tool like afplay

call [afplay %/System/Library/Sounds/Ping.aiff]