|
|
|
@ -235,8 +235,8 @@ void loop() |
|
|
|
|
#ifndef TEENSY_AUDIO_BOARD |
|
|
|
|
for (uint8_t i = 0; i < AUDIO_BLOCK_SAMPLES; i++) |
|
|
|
|
{ |
|
|
|
|
audio_buffer_r[i] *= vol_r; |
|
|
|
|
audio_buffer_l[i] *= vol_l; |
|
|
|
|
audio_buffer_r[i] *= vol; |
|
|
|
|
audio_buffer_l[i] *= vol; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
queue_r.playBuffer(); |
|
|
|
@ -530,7 +530,6 @@ void set_volume(float v, float vr, float vl) |
|
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
|
sgtl5000_1.dacVolume(vol * vol_left, vol * vol_right); |
|
|
|
|
#else |
|
|
|
|
volume_master.gain(vol); |
|
|
|
|
volume_r.gain(vr); |
|
|
|
|
volume_l.gain(vl); |
|
|
|
|
#endif |
|
|
|
|