DSD demod: serial DV volume fix

This commit is contained in:
f4exb 2018-06-27 09:15:10 +02:00
parent 7365b2dece
commit 8df057d7c5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void DVSerialWorker::handleInputMessages()
if (MsgMbeDecode::match(*message))
{
MsgMbeDecode *decodeMsg = (MsgMbeDecode *) message;
int dBVolume = (decodeMsg->getVolumeIndex() - 30) / 2;
int dBVolume = (decodeMsg->getVolumeIndex() - 30) / 4;
float volume = pow(10.0, dBVolume / 10.0f);
int upsampling = decodeMsg->getUpsampling();
upsampling = upsampling > 6 ? 6 : upsampling < 1 ? 1 : upsampling;