Acorn Arcade forums: Programming: Making my programs noisy
|
Making my programs noisy |
|
Chris (11:10 15/9/2003) ksattic (21:22 15/9/2003)
|
|
Chris |
Message #46459, posted by Chris at 11:10, 15/9/2003 |
Member
Posts: 283
|
I'm having trouble adding sound effects to my programs which run in the desktop. I've been trying to use Sound_InstallVoice and Sound_AttachVoice to load a module voice (RMLoaded in the !Run file), but with no success. What I want to do is play a short sample when a user does something, probably with the SOUND command in BASIC, unless there's a SWI that does it better.
What my efforts have persuaded me is that I don't understand the sound system at all. Can anyone give me a quick demo of how I can load a voice, play it, and then exit my program in a RISC OS-friendly manner? Thanks in advance. |
|
[ Log in to reply ] |
|
Simon Wilson |
Message #46472, posted by ksattic at 21:22, 15/9/2003, in reply to message #46459 |
Finally, an avatar!
Posts: 1291
|
Can anyone give me a quick demo of how I can load a voice, play it, and then exit my program in a RISC OS-friendly manner? Thanks in advance. If you load your voice module and type *voices, you should see it listed underneath the standard ones. Typing *channelvoice 2 <voice number> will assign channel 2 to your voice. Then typing SOUND 2, -15, 100, 100 will play your voice.
As for a RISC OS friendly method, you should consider using PlayIt. I've absolutely no experience with this, though. |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Making my programs noisy |