forked from PAWPAW-Mirror/lib_xua
Fixed !MIC_PROCESSING_USE_INTERFACE build
This commit is contained in:
@@ -678,7 +678,11 @@ int main()
|
|||||||
|
|
||||||
#if (NUM_PDM_MICS > 0)
|
#if (NUM_PDM_MICS > 0)
|
||||||
on stdcore[PDM_TILE]: pdm_mic(c_ds_output);
|
on stdcore[PDM_TILE]: pdm_mic(c_ds_output);
|
||||||
|
#ifdef MIC_PROCESSING_USE_INTERFACE
|
||||||
on stdcore[PDM_TILE].core[0]: pdm_buffer(c_ds_output, c_pdm_pcm, i_mic_process);
|
on stdcore[PDM_TILE].core[0]: pdm_buffer(c_ds_output, c_pdm_pcm, i_mic_process);
|
||||||
|
#else
|
||||||
|
on stdcore[PDM_TILE]: pdm_buffer(c_ds_output, c_pdm_pcm);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
USER_MAIN_CORES
|
USER_MAIN_CORES
|
||||||
|
|||||||
@@ -29,12 +29,14 @@ int data_1[4*THIRD_STAGE_COEFS_PER_STAGE * MAX_DECIMATION_FACTOR] = {0};
|
|||||||
|
|
||||||
mic_array_frame_time_domain mic_audio[2];
|
mic_array_frame_time_domain mic_audio[2];
|
||||||
|
|
||||||
[[combinable]]
|
|
||||||
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio
|
|
||||||
#ifdef MIC_PROCESSING_USE_INTERFACE
|
#ifdef MIC_PROCESSING_USE_INTERFACE
|
||||||
, client mic_process_if i_mic_process
|
[[combinable]]
|
||||||
|
#pragma unsafe arrays
|
||||||
|
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio, client mic_process_if i_mic_process)
|
||||||
|
#else
|
||||||
|
#pragma unsafe arrays
|
||||||
|
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio)
|
||||||
#endif
|
#endif
|
||||||
)
|
|
||||||
{
|
{
|
||||||
unsigned buffer;
|
unsigned buffer;
|
||||||
int output[NUM_PDM_MICS];
|
int output[NUM_PDM_MICS];
|
||||||
|
|||||||
@@ -26,10 +26,13 @@ void pdm_mic(streaming chanend c_ds_output[2]);
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
/* Simple user hooks/call-backs */
|
/* Simple user hooks/call-backs */
|
||||||
unsafe void user_pdm_process(mic_array_frame_time_domain * unsafe audio, int output[]);
|
void user_pdm_process(mic_array_frame_time_domain * unsafe audio, int output[]);
|
||||||
|
|
||||||
void user_pdm_init();
|
void user_pdm_init();
|
||||||
|
|
||||||
|
/* PDM interface and decimation cores */
|
||||||
|
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio);
|
||||||
|
|
||||||
/* PDM interface and decimation cores */
|
/* PDM interface and decimation cores */
|
||||||
void pdm_mic(streaming chanend c_ds_output[2]);
|
void pdm_mic(streaming chanend c_ds_output[2]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user