|
|
@ -74,7 +74,7 @@ AudioConnection patchCord111(mixer_l, 0, i2s1, 1); |
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
#else |
|
|
|
#else |
|
|
|
AudioControlWM8731master wm8731m1; |
|
|
|
AudioControlWM8731master wm8731_1; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#else |
|
|
|
#else |
|
|
|
AudioOutputPT8211 pt8211_1; |
|
|
|
AudioOutputPT8211 pt8211_1; |
|
|
@ -210,8 +210,8 @@ void setup() |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef TGA_AUDIO_BOARD |
|
|
|
#ifdef TGA_AUDIO_BOARD |
|
|
|
wm8731m1.enable(); |
|
|
|
wm8731_1.enable(); |
|
|
|
wm8731m1.volume(1.0); |
|
|
|
wm8731_1.volume(1.0); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
//set_volume(vol, vol_left, vol_right);
|
|
|
|
//set_volume(vol, vol_left, vol_right);
|
|
|
@ -541,7 +541,7 @@ void set_volume(float v, float vr, float vl) |
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
sgtl5000_1.dacVolume(vol * vol_left, vol * vol_right); |
|
|
|
sgtl5000_1.dacVolume(vol * vol_left, vol * vol_right); |
|
|
|
#elif TGA_AUDIO_BOARD |
|
|
|
#elif TGA_AUDIO_BOARD |
|
|
|
wm8731m1.volume(vol); |
|
|
|
wm8731_1.volume(vol); |
|
|
|
#else |
|
|
|
#else |
|
|
|
volume_r.gain(vr); |
|
|
|
volume_r.gain(vr); |
|
|
|
volume_l.gain(vl); |
|
|
|
volume_l.gain(vl); |
|
|
|