简体   繁体   中英

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

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.

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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM