Page 2 of 2

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Posted: Tue Apr 25, 2017 3:14 am
by johnsonyin
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

Re: how to extract audio volume level meter from audio stream ( PC(host) to Xmos device) ?

Posted: Tue Apr 25, 2017 8:27 am
by 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
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.

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.