00001 00024 #ifndef I2S_SUBSYSTEM_H_ 00025 #define I2S_SUBSYSTEM_H_ 00026 00027 #include <LPC17xx.h> 00028 #include <kernel.h> 00029 #include <t_syslog.h> 00030 00037 typedef int AUDIOSAMPLE; 00038 00045 #define AUDIOBUFSIZE 64 /* I2Sバッファの長さ。48kHzサンプルの時、1mSにするには96を選ぶ */ 00046 00047 00063 void i2s_init(); 00064 00078 void i2s_dma_init(); 00079 00087 void i2s_start(); 00088 00094 void i2s_dma_intr_handler(); 00095 00096 00109 void process_audio( AUDIOSAMPLE input[2][AUDIOBUFSIZE/2], AUDIOSAMPLE output[2][AUDIOBUFSIZE/2], int count ); 00110 00111 00123 void audio_task(intptr_t exinf); 00124 00125 00126 #endif /* I2S_SUBSYSTEM_H_ */