【问题标题】:How to play a sound with Rebol 2 on Mac OS X如何在 Mac OS X 上使用 Rebol 2 播放声音
【发布时间】:2017-02-10 12:37:45
【问题描述】:

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

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

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

【问题讨论】:

    标签: macos audio terminal rebol rebol2


    【解决方案1】:

    很遗憾,MacOS / OSX 不支持 Rebol sound port (sound://)。

    想到的两种解决方法:

    1) 基本终端铃

    prin #"^G"
    

    2) call 输出到像afplay 这样的声音工具

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

    【讨论】:

    • Afplay 不适用于 Panther。
    • @felix - 您需要使用 Panther 附带的任何音频/声音系统。我确实记得有人通过osascript 致电 Applescript/iTunes
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-26
    • 1970-01-01
    • 1970-01-01
    • 2021-03-16
    • 1970-01-01
    • 2013-07-21
    相关资源
    最近更新 更多