Allow software based volume control (#3556)
* Allow software based volume control - enable it for AR9X - rename "HARDWARE_VOLUME" defines to "MASTER_VOLUME" - adjust build-firmware.py and fwoptions.py * Software based volume control: Do it right * whitespace cleanup * software volume: cleanup/revert some leftovers of undone changes
This commit is contained in:
@@ -430,7 +430,7 @@ void audioConsumeCurrentBuffer()
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HARDWARE_VOLUME)
|
||||
#if defined(MASTER_VOLUME)
|
||||
void setScaledVolume(uint8_t volume)
|
||||
{
|
||||
simuAudio.currentVolume = 127 * volume * simuAudio.volumeGain / VOLUME_LEVEL_MAX / 10;
|
||||
|
||||
Reference in New Issue
Block a user