Audio 2ch mic example #1711
Replies: 3 comments 17 replies
-
Difficult to say from here. The driver usually sends what is stored in its |
Beta Was this translation helpful? Give feedback.
-
OK, I have had a look at this and I find that the correct number of bytes are present in the buffers. The esp32 has USE_LINEAR_BUFFER_TX set as For 1 channel there are 96bytes in both and for 2 channels there are 192 bytes all as expected What does this suggest? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
ArmDeveloperEcosystem/microphone-library-for-pico#3 (comment) supposedly 4 mic has been done |
Beta Was this translation helpful? Give feedback.
-
Please see: audio_2_channel_mic_freertos
I'm trying to make a 2 channel microphone example building on the 4 channel mic example I ported to freertos to run on the Espressif ESP32-S3. This example outputs 4 triangle waves at different periods and is working (image attatched)
However now when I'm trying to do the same with 2 channels, I don't see any payload data in the USB frames.
I have made new descriptors to accommodate for the change in channel count, but apart from that it should be the same. I'm not using encoding in both 4ch and 2ch examples, and therefor use
tud_audio_write
to transfer the sample bytes to the USB FIFO. I'm pretty sure the device is enumerated correctly as it shows up and Linux doesn't complain about it. Wireshark reveals that the host is actually requesting the 192 bytes pr frame as expected, but the device returns 0 bytes.@PanRe do you have an idea about why this could be?
Many thanks in advance!
Kasper Nyhus
Beta Was this translation helpful? Give feedback.
All reactions