Re: [Inform] Sound


6 Dec 95 10:26:22 GMT

Andrew C. Plotkin (erkyrath+@CMU.EDU) wrote:
: russotto@wanda.pond.com (Matthew T. Russotto) writes:
: > In article <IkioEPm00WB7Mg4qQJ@andrew.cmu.edu>,
: > Andrew C. Plotkin <erkyrath+@CMU.EDU> wrote:
: > }I know most ZIP ports support at least the '@sound_effect 1;' beep,
: > }but do any handle the full opcode plus the callback?
: >
: > The Amiga port and one of the Mac ports handles most of it, but not
: > the callback.

: Once that's done, I'll probably go wild and start doing sound-effect
: support... oh boy... but I'll probably leave the callback out as well.
: (It's really not worth writing the full Z-machine interrupt support.
: Especially since I'd probably get it wrong.)

I just put the callback in my Amiga interpreter over the weekend, and
provided that your operating system can tell you when a sound has finished
it's easy. Testing is simple - it's used in Sherlock when you summon a cab;
the sound of the cab approaching is played three times, in increasing
volume.

BTW, I'd expect that the Amiga sound effects can be played on the Mac,
provided you xor the data with 0x80 (which is what is required to turn the
Mac Sherlock sounds into something the Amiga can cope with).

David