|
|
@ -104,6 +104,9 @@ AudioOutputI2S i2s1; |
|
|
|
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord13(stereo2mono, 1, i2s1, 1); |
|
|
|
AudioConnection patchCord13(stereo2mono, 1, i2s1, 1); |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
|
|
|
|
AudioInputI2S i2s1in; |
|
|
|
|
|
|
|
AudioConnection patchCord17(i2s1in, 0, master_mixer_r, 2); |
|
|
|
|
|
|
|
AudioConnection patchCord18(i2s1in, 1, master_mixer_l, 2); |
|
|
|
#elif defined (I2S_AUDIO_ONLY) |
|
|
|
#elif defined (I2S_AUDIO_ONLY) |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord12(stereo2mono, 0, i2s1, 0); |
|
|
@ -444,7 +447,6 @@ void setup() |
|
|
|
show_cpu_and_mem_usage(); |
|
|
|
show_cpu_and_mem_usage(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// init master_mixer
|
|
|
|
// init master_mixer
|
|
|
|
#if NUM_DEXED > 1 |
|
|
|
#if NUM_DEXED > 1 |
|
|
|
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) |
|
|
|
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) |
|
|
@ -455,6 +457,13 @@ void setup() |
|
|
|
#else |
|
|
|
#else |
|
|
|
master_mixer_r.gain(0, 1.0); |
|
|
|
master_mixer_r.gain(0, 1.0); |
|
|
|
master_mixer_l.gain(0, 1.0); |
|
|
|
master_mixer_l.gain(0, 1.0); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef TEENSY_AUDIO_BOARD |
|
|
|
|
|
|
|
master_mixer_r.gain(2, 1.0); // I2S Input
|
|
|
|
|
|
|
|
master_mixer_l.gain(2, 1.0); // I2S Input
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
master_mixer_r.gain(2, 0.0); // I2S Input
|
|
|
|
|
|
|
|
master_mixer_l.gain(2, 0.0); // I2S Input
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
master_mixer_r.gain(3, 0.0); |
|
|
|
master_mixer_r.gain(3, 0.0); |
|
|
|
master_mixer_l.gain(3, 0.0); |
|
|
|
master_mixer_l.gain(3, 0.0); |
|
|
|