Hi infiniteimprobability,
you mean, if sent calculated mutliplier by host (default ), samplesIn_1[ ] will be saved input channel audio volume (actual sample ) value,
if sent decibel volume value by host, then samplesIn_1[ ] will be saved input channel audio decibel volume value
is it right? thanks
how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?
-
- Member++
- Posts: 16
- Joined: Thu Nov 10, 2016 2:33 am
-
Verified
- XCore Legend
- Posts: 1156
- Joined: Thu May 27, 2010 10:08 am
Sorry - I don't quite understand what you mean - host doesn't send a calculated multiplier. It sends a dB value (0 tp -127 usually). Samplesxxx variables do not contain volume data - they contain sample data.you mean, if sent calculated mutliplier by host (default ), samplesIn_1[ ] will be saved input channel audio volume (actual sample ) value,
if sent decibel volume value by host, then samplesIn_1[ ] will be saved input channel audio decibel volume value
is it right? thanks
volsOut (or volsIn) contains dB sample value
multOut (or multIn) contains actual multiplier value used to attenuate sample value to apply volume control
multOut/In gets calculated and written to a global in audiorequests.xc and the read and actually applied to the stream data in decouple.xc
Hope that's clear.
Engineer at XMOS