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

If you have a simple question and just want an answer.
johnsonyin
Member++
Posts: 16
Joined: Thu Nov 10, 2016 2:33 am

Post 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


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post 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.
Post Reply