Use USB Audio 2.0 Record by Frame Topic is solved

Voice related projects and technical discussions
xyx361100238
Junior Member
Posts: 6
Joined: Mon Dec 12, 2016 3:31 am

Use USB Audio 2.0 Record by Frame  Topic is solved

Postby xyx361100238 » Mon Mar 20, 2017 5:10 am

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[i];
}
}
else
{
break;
}
}
}
}
View Solution
User avatar
johned
Experienced Member
Posts: 105
Joined: Tue Mar 26, 2013 12:10 pm
Contact:

Postby johned » Wed Mar 22, 2017 10:32 am

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

Return to “Voice”

Who is online

Users browsing this forum: No registered users and 1 guest