Files
lib_xua/module_usb_audio/audio.h
Ross Owen d519b53a27 Merge
2015-03-17 11:50:02 +00:00

29 lines
790 B
C

#ifndef __audio_h__
#define __audio_h__
#include "devicedefines.h"
/** The audio driver thread.
*
* This function drives I2S ports and handles samples to/from other digital
* I/O threads.
*
* \param c_in Audio sample channel connected to the mixer() thread or the
* decouple() thread
* \param c_dig channel connected to the clockGen() thread for
* receiving/transmitting samples
* \param c_config An optional channel that will be passed on to the
* CODEC configuration functions.
*/
void audio(chanend c_in,
#ifdef SPDIF_TX
chanend c_spdif_tx,
#endif
#if(defined(SPDIF_RX) || defined(ADAT_RX))
chanend c_dig,
#endif
chanend ?c_config, chanend ?c_adc);
void SpdifTxWrapper(chanend c_spdif_tx);
#endif // __audio_h__