home *** CD-ROM | disk | FTP | other *** search
- ############################################################################
- # #
- # LoadCSamp application #
- # #
- #==========================================================================#
- # #
- # by David Radford #
- # #
- #==========================================================================#
- # #
- # These files are a part of !CompUtils and may not be distributed #
- # separately other than as laid down in the !ReadMe file. #
- # #
- ############################################################################
-
- Overview
- ========
-
- This directory contains a series of Absolute files that form *the* simplest
- way to use compressed samples. There is one Absolute file for each group of
- sample types supported in this release of !CompUtils, plus a Universal
- version which will decompress any sample type presently defined.
-
- These absolute files are intended to be used in mono-tasking applications,
- games, etc. They decompress the file given in the command line into a block
- of RMA, then install a module for it providing a standard RISC OS voice
- generator.
-
- The files are in two distinct flavours: fixed-pitch and variable-pitch.
- Fixed-pitch samples will always play at the correct speed *provided* the
- hardware's DMA period matches the sample period of the sample you're trying
- to play. The variable pitch versions are more flexible in that they can be
- played at any pitch, but this can often be a right pain if you don't want
- it!
-
- If even LoadCSamp is too complicated for you, then you shouldn't even be
- *thinking* of writing a serious program!
-
-
- Using LoadCSamp
- ===============
-
- Choose an appropriate Absolute file depending on the sample format(s) your
- program needs to be able to cope with and copy it into your application's
- directory as 'LoadCSamp'. In your application's !Run file include lines of
- the form:
-
- Run <codename> <sample> [<module name>]
-
- where <codename> is the filename of the Absolute file, <sample> is the
- filename of the compressed sample to load, and <module name> is the
- name to give the resulting module. If omitted, the module's name is taken as
- the leafname of the file.
-
- For example:
-
- Run <Obey$Dir>.LoadCSamp <Obey$Dir>.Samples.MySample
-
- or:
-
- Run <Obey$Dir>.LoadCSamp <Obey$Dir>.Plobby WackyNoise
-
- Remember to use a Sound_Configure SWI somewhere in your program to set the
- hardware's DMA period! (48us should be fine for most cases.)
-
-
- Memory
- ======
-
- You should allocate the applications a small amount of memory to run in
- before trying to use them. For example:
-
- *WimpSlot -min 32K -max 32K
-
- All applications have been squeezed to reduce the amount of memory needed to
- store them on disc. Unfortunately this also means that if there is
- insufficient memory to run them, you most likely will *not* get a proper
- warning but an 'Abort on data transfer'. The solution is to increase the
- wimp slot slightly. There is nothing I can do about this - it's the fault of
- Acorn's !Squeeze utility.
-
-
- Copyright
- =========
-
- Remember: all versions of LoadCSamp are copyright, as are any modules they
- produce. Normally, use in programs (be they commercial or freeware) is
- totally free of charge. See the !ReadMe file in the main directory for more
- information on copyright details and contact addresses.
-
-
- (c) David Radford 1995-1996
-
-
-