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

标签 macos audio terminal rebol rebol2

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

目的是通过单击按钮获得声音。

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

最佳答案

不幸的是,MacOS / OSX不支持Rebol sound port(sound://)。

我想到两个解决方法:

1)基本接线端子

prin #"^G"

2)将call输出到类似于 afplay 的声音工具
call [afplay %/System/Library/Sounds/Ping.aiff]

关于macos - 如何在Mac OS X上使用Rebol 2播放声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42159601/

相关文章:

cocoa - 如何在我的 Cocoa 应用程序中正确嵌入第三方框架?

c - no-gui-app 的应用程序图标在 Dock 中弹跳了几分钟

android - 构建 Android 终端模拟器

linux - 如何在没有编辑器的情况下将变量 append 到 Shell 文档

c++ - 如何获取 Apple/Mac 上的可用虚拟内存量?

macos - 我如何告诉链接器使用方法的多个实现中的哪一个?

ios - 如何在 ios 上解码 flac 文件

iphone - AudioServicesPlaySystemSound 和 AVAudioPlayer 可以混用吗?

c# - silverlight for wp7播放音效用什么

android - OSX 小牛 : Run anddroid SDK from an external hard drive (different from the default Machintosh HD)