[Image]  APEX AUDIO SYSTEM
Instruction Manual

intro | getting started | conv2aas | example | faq
api : index | general | sfx | mod | misc | mixer


:: Building AAS components

Note that if you downloaded the AAS release package, the needed library, examples and conv2aas program for both Linux and Windows are already present in the ‹root›/build directory.

We use a makefile in the root of the repo to build the library, conversion tool and examples. It is expected that you have a cross-compiler and a host compiler installed on your system. The paths to these need to be configured at the top of the makefile (for PREFIX and TOOLS, don't forget suffix slash forward..):

Run make without arguments in the root of the repo to build aas, conv2aas and the examples

. The files can be found in ‹root›/build:

To build one or more individual components, add their name as argument to the makefile:


:: First Steps

Once the library and conv2aas are built, the user must include the AAS header files ("AAS.h" and, optionally, "AAS_Mixer.h") and link "libAAS.a" with their project. Next, the interrupt handling routines must be set up so that a Timer 1 interrupt results in a call to AAS_Timer1InterruptHandler (or AAS_FastTimer1InterruptHandler with a seperate call to AAS_DoWork). The example code section in this documentation, and the code included with AAS demonstrates how to do this. Users are encouraged to reuse the code shown in their own projects.

It is also recommended that the project's makefile be modified so that Conv2AAS is automatically called when the project is compiled, and its output is assembled and linked with the main code. The makefile included with the example code shows how to do this.

It is also important that none of the following resources are used in your code as they are required by AAS:

Also note that DMA3 can be used, but only via the AAS_DoDMA3 function call or with a single stmia instruction. Once these steps have been successfully completed AAS should be ready for use. A detailed description of AAS's API can be found here and some example code can be found here.


:: Things To Look Out For

Whilst every effort has been made to make AAS as easy to use as possible, there are a few things to look out for: