如何在Mac OS X上使用Rebol 2播放声音

问题描述:

缺少的功能是播放声音。我正在考虑调用一个系统库或一个可以接受声音名称作为参数的终端命令。如何在Mac OS X上使用Rebol 2播放声音

目标是从点击按钮中获得一些声音。

PS。我使用Mac OS X Panther在iBook G3上使用Rebol/view。

不幸的是,在MacOS/OSX上不支持Rebol sound portsound://)。

两项措施浮现在脑海中:

1)基本终端钟

prin #"^G" 

2)call出良好的工具,如afplay

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

Afplay不可用豹。 – felix

+0

@felix - 您需要使用Panther随附的任何音频/音响系统。我记得有人通过[osascript]调用Applescript/iTunes(https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/osascript.1.html) – draegtun