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 (Rev #6, changes)

Showing changes from revision #5 to #6: Added | Removed | Changed

Programmer's Reference Manuals
» Part 15 – SWI Calls
» Sound
» Sound_InstallVoice

Voice Generator

Offset Contents
+0 B Fill
+4 B Update
+8 B GateOn
+12 B GateOff
+16 B Instantiate
+20 B Free
+24 LDR PC, [R13], #4 (was Install)
+28 Offset from start of voice generator block to voice name

Notes

Voice Generators are entered in IRQ mode with IRQs enabled. R14 should not be used as any interrupts will corrupt the value.

Voice Generators should return to the Channel Handler via LDR PC,[R13],#4

The Fill, Update, GateOn and GateOff entries provide services to fill the DMA buffer at different stages of a note.

The Instantiate and Free entries provide facilities to attach or detach the Voice Generator to or from a channel.

The Install entry was originally to be called when a Voice Generator was initialised. Since Voice Generators are now implemented as Relocatable Modules, which offer exactly this service in the form of the Initialisation entry point, this field is not supported and simply returns to the caller (LDR PC,[R13],#4 above).

The voice name is used by the Channel Handler voice table. It should be both concise and descriptive. The offset must be positive relative – that is, the voice name must be after the header.

See also

  • Sound_Configure, Sound_InstallVoice
Revision from March 8, 2015 09:57:25 by Jon Abbott (1421)?
Forward in time (to current) | Back in time (5 more) | See current | Hide changes | History | Rollback | Linked from: Sound Channel Handler, Sound_InstallVoice 1, Sound Voice Generator Update, Sound Voice Generator GateOff, Sound Voice Generator Fill, Sound Channel Control Block, Sound Voice Generator Instantiate, Sound Voice Generator Free, Sound Voice Generator Flag byte, Sound Scheduler, Sound Voice Generator GateOn, Sound_InstallVoice V

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