* R0 = Address of sample (in VIDC 8-bit signed log format)
R1 = Size of sample in bytes (word aligned)
R2 = Slot to install in or 0 for next free slot (see Sound_InstallVoice)
* R0 = Sample's "handle" (pointer to workspace)
R1 = Voice slot sample is installed in
R2 = Voice slot (copy of R1)
It is recommended that sample data is kept in the RMA, using OS_Module for memory management (Archimedes), or in a dynamic area (Risc PC). Having sample data in application workspace could crash SoundDMA if the application is paged out eg by Wimp_Poll while the sample is playing.
Each sample's voice is given the name THSVoice<hh> where <hh> is a unique hex code.
|
|
|