From ba78bd9ba834260d035a9830726afc34fdad2a15 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 18 Oct 2009 23:32:54 +0200 Subject: import firmware from LEGO v1.05 --- AT91SAM7S256/Source/c_sound.h | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 AT91SAM7S256/Source/c_sound.h (limited to 'AT91SAM7S256/Source/c_sound.h') diff --git a/AT91SAM7S256/Source/c_sound.h b/AT91SAM7S256/Source/c_sound.h new file mode 100644 index 0000000..93e3221 --- /dev/null +++ b/AT91SAM7S256/Source/c_sound.h @@ -0,0 +1,44 @@ +// +// Programmer +// +// Date init 14.12.2004 +// +// Reviser $Author:: Dktochpe $ +// +// Revision date $Date:: 26-08-05 8:37 $ +// +// Filename $Workfile:: c_sound.h $ +// +// Version $Revision:: 10 $ +// +// Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Source/c_sound.h $ +// +// Platform C +// + + +#ifndef C_SOUND +#define C_SOUND + +#define SOUNDBUFFERSIZE 64 // Flash Sector size ? +#define SOUNDBUFFERS 3 // Min 3 - max 255 + + +typedef struct +{ + UWORD Length[SOUNDBUFFERS]; + UWORD File; + UWORD SampleRate; + UBYTE Buffer[SOUNDBUFFERS][SOUNDBUFFERSIZE]; + UBYTE BufferIn; + UBYTE BufferOut; + UBYTE BufferTmp; +}VARSSOUND; + +void cSoundInit(void* pHeaders); +void cSoundCtrl(void); +void cSoundExit(void); + +extern const HEADER cSound; + +#endif -- cgit v1.2.3