tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

audio_test example

Open petercwallis opened this issue 2 years ago • 0 comments

Operating System

Linux

Board

rp2040

Firmware

In tinyusb-master/examples/device/audio_test/main.c the body of the function audio_task() is left empty. I have tried to modify it so that it returns a constant value at 16Mhz with 2 bytes per sample. I believe I have modified the tusb_config.h and usb_descriptors.c correctly.

What happened ?

rather than a nice straight line, assigning a constant for each sample (rather than a value from the microphone) produces a saw-tooth shape in Audacity.

Alsa detects a microphone via usb no problem, and I am given the option of S16_LE as a format (among others) with arecord.

How to reproduce ?

Without listing the code, I am not sure what to say here. my usb microphone is detected as a microphone and set up as the default under alsa. Then open Audacity press the record button press the zoom in button

Debug Log as txt file

No response

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • [X] I confirm I have checked existing issues, dicussion and documentation.

petercwallis avatar Aug 31 '22 08:08 petercwallis