Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3
minLevel2
indent20px

...

Refer to Figure - usbd_audio_dev_cfg.c - Typical Topologies Example for a visual representation of this audio function. 

Figure - Microphone Demo shows the principle of the microphone demo.

...

Upon connection of your audio device, the simulated microphone device should appear in the recording devices list of the Sound Manager as shown in Figure - Sound Manager - Microphone in Recording Devices List. In this example, the recording device is identified as "Micrium Audio Product" (ProductStrPtr field of  USBD_DEV_CFG set to this string).

Anchor
Figure - Sound Manager - Microphone in Recording Devices List
Figure - Sound Manager - Microphone in Recording Devices List

...

  • the volume level is different from 0 and the microphone is not muted. Select your microphone, click the button "Properties", go to the tab "Levels" and check the settings. It should look like Figure - Sound Manager - Microphone Levels
  • the playthrough feature is enabled. Select your microphone, click the button "Properties", go to the tab "Listen" and select "Listen to this device". Ensure that the Windows audio driver will playback the record data through your headphone by looking at the "Playback through this device" list (cf. Figure - Sound Manager - Microphone Playthrough). 

Anchor
Figure - Sound Manager - Microphone Levels
Figure - Sound Manager - Microphone Levels

...

Refer to Figure - usbd_audio_dev_cfg.c - Typical Topologies Example for a visual representation of this audio function. 

Figure - Loopback Demo101351763 shows the principle of the loopback demo which can be seen as a simulated headset.

...

Upon connection of your audio device, the simulated headset device should appear in two lists. The microphone should be listed in the recording devices list of the Sound Manager as shown in Figure - Sound Manager - Microphone in Recording Devices List101351763, whereas the speaker part should be listed in the playback devices list as shown in Figure - Sound Manager - Speaker in Playback Devices List. In this example, the playback and recording device are identified as "Micrium Audio Product" (ProductStrPtr field of  USBD_DEV_CFG set to this string).

Anchor
Figure - Sound Manager - Speaker in Playback Devices List
Figure - Sound Manager - Speaker in Playback Devices List

...

  • Speaker: the speaker appears in the list as the "Default Device" as shown in Figure - Sound Manager - Speaker in Playback Devices List101351763. If it is not the case, right-click on the "Micrium Audio Product" speaker and select "Set as Default Device". 
  • Microphone: the volume level is different from 0 and the microphone is not muted. Refer to Figure - Sound Manager - Microphone Levels 101351763
  • Microphone: the playthrough feature is enabled. Select your microphone, click the button "Properties", go to the tab "Listen" and select "Listen to this device". Ensure that the Windows audio driver will playback the record data through your headphone by looking at the "Playback through this device" list (cf. Figure - Sound Manager - Microphone Playthrough for Loopback Demo101351763). Do not select "Default Playback Device" as it could be the "Micrium Audio Product" speaker. In that case you won't hear anything as the music player and the microphone share the same speaker of your audio device. Explicitly select another speaker device (for example, your jack headphone).

...