Changed driver for the TGA_AUDIO_BOARD from master to slave.

master
Holger Wirtz 6 years ago
parent 115da6d2a0
commit b5d4743693
  1. 8
      MicroMDAEPiano.ino

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

Loading…
Cancel
Save