darioconcilio
Well-known member
Hi,
I'm trying to use Audio Library with Accell and Gyro sensor.
I'm trying to use Audio Library with Accell and Gyro sensor.
Code:
AudioPlaySdWav EventPlaySdWav; //xy=150,302
AudioPlaySdWav HumPlaySdWav; //xy=151,232
AudioMixer4 SaberMixer; //xy=476,325
AudioOutputAnalog OutputDac; //xy=727,295
AudioConnection *patchCord1 = NULL;
AudioConnection *patchCord2 = NULL;
AudioConnection *patchCord3 = NULL;
[...]
[CODE]
When start program it uses AudioPlaySdWav to play a single WAV of 16 sec, and when wav file finish, teensy 3.2 restarts it.
During this process, when Accell or Gyro send a particular information, it plays AudioPlaySdWav with a specific WAV file.
Sometimes it happens that the teensy 3.2 crashes and produces a fixed and abnormal sound, the whole program crashes.
SD card contains sub folder from which, Audio Library, read both audio files.
What can cause this behavior?
PS: The crashes is not systematic.
Thank you for support