|
|
@ -74,21 +74,13 @@ AudioConnection patchCord13(freeverb_r, 0, mixer_r, 1); |
|
|
|
AudioConnection patchCord14(freeverb_l, 0, mixer_l, 1); |
|
|
|
AudioConnection patchCord14(freeverb_l, 0, mixer_l, 1); |
|
|
|
AudioConnection patchCord15(mixer_r, volume_r); |
|
|
|
AudioConnection patchCord15(mixer_r, volume_r); |
|
|
|
AudioConnection patchCord16(mixer_l, volume_l); |
|
|
|
AudioConnection patchCord16(mixer_l, volume_l); |
|
|
|
#if defined(TEENSY_AUDIO_BOARD) |
|
|
|
AudioOutputUSB usb1; |
|
|
|
|
|
|
|
AudioConnection patchCord17(volume_r, 0, usb1, 0); |
|
|
|
|
|
|
|
AudioConnection patchCord18(volume_l, 0, usb1, 1); |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioConnection patchCord17(volume_r, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord19(volume_r, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord18(volume_l, 0, i2s1, 1); |
|
|
|
AudioConnection patchCord20(volume_l, 0, i2s1, 1); |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
#elif defined(TGA_AUDIO_BOARD) |
|
|
|
|
|
|
|
AudioOutputI2S i2s1; |
|
|
|
|
|
|
|
AudioConnection patchCord17(volume_r, 0, i2s1, 1); |
|
|
|
|
|
|
|
AudioConnection patchCord18(volume_l, 0, i2s1, 0); |
|
|
|
|
|
|
|
AudioControlWM8731master wm8731_1; |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
AudioOutputPT8211 pt8211_1; |
|
|
|
|
|
|
|
AudioConnection patchCord16(volume_r, 0, pt8211_1, 1); |
|
|
|
|
|
|
|
AudioConnection patchCord17(volume_l, 0, pt8211_1, 0); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Objects
|
|
|
|
// Objects
|
|
|
|
mdaEPiano* ep; |
|
|
|
mdaEPiano* ep; |
|
|
@ -194,7 +186,6 @@ void setup() |
|
|
|
AudioNoInterrupts(); |
|
|
|
AudioNoInterrupts(); |
|
|
|
AudioMemory(AUDIO_MEM); |
|
|
|
AudioMemory(AUDIO_MEM); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
|
|
|
|
sgtl5000_1.enable(); |
|
|
|
sgtl5000_1.enable(); |
|
|
|
sgtl5000_1.dacVolumeRamp(); |
|
|
|
sgtl5000_1.dacVolumeRamp(); |
|
|
|
sgtl5000_1.dacVolume(1.0); |
|
|
|
sgtl5000_1.dacVolume(1.0); |
|
|
@ -207,13 +198,6 @@ void setup() |
|
|
|
sgtl5000_1.autoVolumeEnable(); |
|
|
|
sgtl5000_1.autoVolumeEnable(); |
|
|
|
sgtl5000_1.enhanceBassEnable(); |
|
|
|
sgtl5000_1.enhanceBassEnable(); |
|
|
|
Serial.println(F("Teensy-Audio-Board enabled.")); |
|
|
|
Serial.println(F("Teensy-Audio-Board enabled.")); |
|
|
|
#elif defined(TGA_AUDIO_BOARD) |
|
|
|
|
|
|
|
wm8731_1.enable(); |
|
|
|
|
|
|
|
wm8731_1.volume(1.0); |
|
|
|
|
|
|
|
Serial.println(F("TGA board enabled.")); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
Serial.println(F("PT8211 enabled.")); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined (SHOW_DEBUG) && defined (SHOW_CPU_LOAD_MSEC) |
|
|
|
#if defined (SHOW_DEBUG) && defined (SHOW_CPU_LOAD_MSEC) |
|
|
|
// Initialize processor and memory measurements
|
|
|
|
// Initialize processor and memory measurements
|
|
|
|