Use audition to test USBaudio data return delay

1. Introduction

This article mainly introduces how to use Audition software to test the delay of STM32 USB audio upstream audio data.

Two, preparation

Audition, ASIO driver, STM32 enumerated USB Audio high-speed sound card test board.

2. Hardware connection

Short-circuit the data in and data out of IIS of STM32 with a jumper cap, and connect to the computer through a USB cable. The computer displays the following, which means the sound card enumeration is successful.
insert image description here

Three, Audition configuration

3.1 Configure audition hardware selection

insert image description here

3.2 Confirm that the device type is ASIO mode

insert image description here

3.3 Configure ASIO sound card driver configuration

insert image description here

3.4 Create a new multitrack session for recording

insert image description here

3.5 Configuring Downlink and Uplink Paths

1. Set track 1 to play audio: select S for solo; output is STM32 USB AUDIO 1

2. Set track 2 to record IV data: select R for recording; input is STM32 USB AUDIO 2

Note: Track 1 output corresponds to track 2 input
insert image description here

insert image description here

After the configuration is complete, the interface is as follows:

insert image description here

3.6 Record iv data

1. Turn on the test sound source

2. Drag this audio source to track 1

3. Modify the name of track 2 as the file name for recording IV data

4. Click on the triangle: only play but not record; click on the red circle: record while playing; click on the square: stop

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-l12mnfeR-1683338827943) (C:\Users\ZhaoXu\AppData\Roaming\Typora\typora-user-images\ image-20230506094709447.png)]

3.7 View the recorded data waveform

1. After the recording is stopped, the file shown in the figure will appear

2. Double-click this file to open its wav format

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-9cs4wDvC-1683338827944) (C:\Users\ZhaoXu\AppData\Roaming\Typora\typora-user-images\ image-20230506094750399.png)]

3.8 Convert to pcm format

1. Click File

2. Click Save As

3. Modify any file name and location

4. As shown in the figure: Modify format, sampling type, format setting

5. Click OK to save the pcm file

insert image description here

3.9 Close the pcm

1. Select the file and right click

2. Close the selected file

3. Click Yes

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-Y7sbrbyq-1683338827944) (C:\Users\ZhaoXu\AppData\Roaming\Typora\typora-user-images\ image-20230506100107374.png)]

3.10 Reopen (16bit i, 16bit v)

1. Find the pcm file under the save path

2. Set as shown in the picture

3. Click OK

4. You can open this IV data

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-U3XiePPI-1683338827945) (C:\Users\ZhaoXu\AppData\Roaming\Typora\typora-user-images\ image-20230506100222846.png)]

3.11 Check the corresponding delay

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-n3L9xmPV-1683338827945) (C:\Users\ZhaoXu\AppData\Roaming\Typora\typora-user-images\ image-20230506100404872.png)]

Four, summary

This article mainly introduces how to use audition to test the delay of the USB audio uplink loop, for the reference of relevant developers.

Guess you like

Origin blog.csdn.net/xuxu_123_/article/details/130520851