On MD-3x0 added a fixed gain of four to codec2 demodulated audio to compensate for the low output volume
This commit is contained in:
parent
4367db53d0
commit
7ed4a64027
|
|
@ -290,6 +290,12 @@ static void *decodeFunc(void *arg)
|
||||||
if(newData)
|
if(newData)
|
||||||
{
|
{
|
||||||
codec2_decode(codec2, audioBuf, ((uint8_t *) &frame));
|
codec2_decode(codec2, audioBuf, ((uint8_t *) &frame));
|
||||||
|
|
||||||
|
#ifdef PLATFORM_MD3x0
|
||||||
|
// Bump up volume a little bit, as on MD3x0 is quite low
|
||||||
|
for(size_t i = 0; i < 160; i++) audioBuf[i] *= 4;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue