Source volume control

Discussions about USB Audio on XMOS devices
lmariotti
Active Member
Posts: 43
Joined: Mon Nov 21, 2022 5:38 pm

Source volume control

Post by lmariotti »

Hello everyone,

using sw_usb_audio v9.1.0 there's an easy way to set the source audio volume (PC/Tablet/Smartphone) to 100%?

With a quick search I've found OUTPUT_VOLUME_CONTROL and INPUT_VOLUME_CONTROL but these controls seems to be deep nested into the library and I'm scared to break everything.

Can someone point me to the right direction? I would "just like to" set the volume at 100% as a new device is connected.


Thanks for your support

Best regards
User avatar
Ross
Verified
XCore Legend
Posts: 1262
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

That's the default behaviour, the issue is that many hosts will "remember" previous values for that device and set it to that on re-plug.
Technical Director @ XMOS. Opinions expressed are my own