1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -05:00

DSD demod: serial DV volume fix

This commit is contained in:
f4exb 2018-06-27 09:15:10 +02:00
parent 7365b2dece
commit 8df057d7c5

View File

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