RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Sound Voice Generator Instantiate

SoundChannels
» SWI Calls
» Sound_InstallVoice
» Sound Voice Generator

Voice Generator Instantiate

The Instantiate entry is called to inform the Voice Generator of a request to attach a channel to it.

Entry
R0 Channel number
R5 Pointer to Voice Generator
Exit
R0 Preserved if the Instantiation was successful, else it is altered.
R1-R4 Preserved
R5 May be corrupted
R6-R12 Preserved

Notes

The Voice Generator is entered in SVC mode.

To return to the Channel Handler use LDR PC,[R13],#4

A Voice Generator should ideally be able to support eight channels. The request can either be accepted (R0 preserved on exit), or rejected (R0 altered on exit).

The usual reason for rejection is that an algorithm is slow and is already filling as many channels as it can within each buffer period: for example very complex algorithms, or ones that read long samples off disc.

See also

  • Sound_Configure, Sound Voice Generator
Revised on November 13, 2017 02:30:49 by Alan Robertson (52) (49.192.18.196)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: Sound Voice Generator

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys