2

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.

draegtun
  • 22,441
  • 5
  • 48
  • 71
felix
  • 31
  • 2

1 Answers1

1

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]
draegtun
  • 22,441
  • 5
  • 48
  • 71
  • Afplay is not available with Panther. – felix Feb 13 '17 at 11:49
  • @felix - You need to use whatever audio/sound systems Panther comes with. I do recall people calling Applescript/iTunes via [osascript](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/osascript.1.html) – draegtun Feb 14 '17 at 12:20