|  | 
 
Information
| 说明: | 建议参照本版块置顶帖内容输入必要信息 |  
| 芯片型号: | B91 Generic Starter Kit |  
| 驱动SDK版本: | Telink_RDS_v323 |  | Hello, 
 
 How can I setup audio 24bits 48k from the line-in to Speakers(DACs)?
 I need setup the B91 Generic Starter Kit  to get audio from the Line-In to the the Audio output
 
 
 //audio parameters
 #define    AUDIO_BUFF_SIZE    4096
 volatile unsigned short AUDIO_BUFF[AUDIO_BUFF_SIZE>>1] __attribute__((aligned(3))); ///Is it correct 3 instead 4 on aligment?
 
 
 void Audio_user_init()
 {
 audio_init(LINE_IN_TO_BUF_TO_LINE_OUT,AUDIO_48K,STEREO_BIT_24);
 audio_rx_dma_chain_init(DMA2,(unsigned short*)AUDIO_BUFF,AUDIO_BUFF_SIZE); /// is unsigned short  correct?
 audio_tx_dma_chain_init (DMA3,(unsigned short*)AUDIO_BUFF,AUDIO_BUFF_SIZE);
 
 
 audio_codec_dac_power_on(); // Is it required?
 audio_codec_adc_power_on(); // Is it required?
 audio_rx_dma_en(); // Is it required?
 audio_tx_dma_en(); // Is it required?
 
 }
 
 
 Also, Can I send the audio input simultanestly to speaker and save on memory?
 
 Regards,
 Heiner
 
 
 | 
 |