Hi,All
    According the Microphone array library V2.0.0 manual,if i set MIC_ARRAY_MAX_FRAME_SIZE_LOG2 = 9  buffering_type = DECIMATOR_HALF_FRAME_OVERLAP   in decimator_config_common.
Now I got 512 samples by Frame, but i don't know how to sent it to USB,there is not demo code in website.
code:
        while(1)
        {
            mic_array_frame_time_domain * unsafe current = mic_array_get_next_time_domain_frame(c_ds_output, 1/*2*/, buffer, mic_audio, dc);
            unsafe
            {
                int req;
                user_pdm_process(current, output);
                c_audio :> req;
                if(req)
                {
                    for(int i = 0; i < NUM_PDM_MICS; i++)
                    {
                        c_audio <: (int)output;
                    }
                }
                else
                {
                    break;
                }
            }
            }
        }
			
			
									
							
		Use USB Audio 2.0 Record by Frame Topic is solved
- 
				xyx361100238
- Junior Member
- Posts: 6
- Joined: Mon Dec 12, 2016 3:31 am
- 
				johned  
- XCore Addict
- Posts: 185
- Joined: Tue Mar 26, 2013 12:10 pm
Your best option is to start with the USB Audio 2.0 Device Software - source code, which you can download from the mic array web page : https://www.xmos.com/support/boards?product=20258.
Best regards,
John
			
			
									
										
						Best regards,
John
