Minimal Library SDK (c) rlyeh, 2005. |
Skeleton sampleMinimal but working sample. Using libraryGP2X minimal library by rlyeh, 2005 License
Source code#include "minimal.h" Explanation
C Compilationarm-linux-gcc minimal.c skeleton.c -static -lpthread -lm C++ Compilationarm-linux-g++ minimal.c skeleton.c -static -lpthread -lm Output
|
This function sets up the whole library.
void gp2x_init( int ticks_per_second, int bpp, int rate, int bits, int stereo, int Hz, int solid_font )
This function is automatically called by the library, and expects a sound buffer to be filled in.
extern void gp2x_sound_frame( void * blah, void * buffer, int samples )