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:
reichi
2016-06-09 22:50:06 +02:00
committed by Bertrand Songis
parent beb21ab7db
commit 0c926e5d19
9 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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;