|
@@ -25,25 +25,6 @@
|
|
|
*
|
|
|
* SdWav3 : sample ambiance -> mix2 -> Rout & RMS2
|
|
|
*/
|
|
|
-//// GUItool: begin automatically generated code
|
|
|
-//AudioPlaySdWav LoopPlayer; //xy=152,429 LOOP
|
|
|
-//AudioPlaySdWav PresencePlayer; //xy=153,217 PRESENCE
|
|
|
-//AudioPlaySdWav WaitPlayer; //xy=155,307 WAIT
|
|
|
-//AudioMixer4 mixer1; //xy=572,215
|
|
|
-//AudioMixer4 mixer2; //xy=579,344
|
|
|
-//AudioAnalyzeRMS rms1; //xy=875,315
|
|
|
-//AudioOutputI2S i2s1; //xy=876,225
|
|
|
-//AudioAnalyzeRMS rms2; //xy=876,365
|
|
|
-//AudioConnection patchCord1(LoopPlayer, 0, mixer2, 0);
|
|
|
-//AudioConnection patchCord2(PresencePlayer, 0, mixer1, 0);
|
|
|
-//AudioConnection patchCord3(WaitPlayer, 0, mixer1, 1);
|
|
|
-//AudioConnection patchCord4(mixer1, 0, i2s1, 0);
|
|
|
-//AudioConnection patchCord5(mixer1, rms1);
|
|
|
-//AudioConnection patchCord6(mixer2, 0, i2s1, 1);
|
|
|
-//AudioConnection patchCord7(mixer2, rms2);
|
|
|
-//AudioControlSGTL5000 sgtl5000_1; //xy=573,537
|
|
|
-//// GUItool: end automatically generated code
|
|
|
-
|
|
|
|
|
|
// GUItool: begin automatically generated code
|
|
|
AudioPlaySdWav LoopPlayer; //xy=153,217
|
|
@@ -194,6 +175,7 @@ void ESPSerial(){
|
|
|
|
|
|
|
|
|
bool checkUDPconnected() {
|
|
|
+ //Serial.println ("checking UDP");
|
|
|
Serial1.println("AT+CIPSTATUS");
|
|
|
delay(50);
|
|
|
while ( Serial1.available() ) {
|
|
@@ -302,7 +284,7 @@ void setup() {
|
|
|
sgtl5000_1.lineOutLevel(13); // set output to 3.16 Vpp
|
|
|
sgtl5000_1.volume(1); //set volume to maximum
|
|
|
Serial.print("Playing LOOP file ");
|
|
|
- Serial.println(PRESENCE_WAV);
|
|
|
+ Serial.println(LOOP_WAV);
|
|
|
LoopPlayer.play(LOOP_WAV.c_str());
|
|
|
// LoopPlayer.play(PRESENCE_WAV.c_str());
|
|
|
|
|
@@ -411,7 +393,7 @@ void loop() {
|
|
|
// }
|
|
|
PresencePlayer.stop();
|
|
|
delay(10);
|
|
|
- Serial.println(PresencePlayer.isPlaying());
|
|
|
+ //Serial.println(PresencePlayer.isPlaying());
|
|
|
// }
|
|
|
// PresencePlayer.stop();
|
|
|
}
|