log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
ksattic
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