Hi all,
Teensy (3.5) with audio shield and Audio library seem to be a abolute nice solution for my project (porting Dexed (open source Yamaha DX7 simulation) to the Teensy). But my problems are starting at a simple point: My small test program for the AudioQueue crashes:
Perhaps I am doing something wrong? It starts, prints sometime that is is blocking and than the Teensy hangs
I am using the latest Teensy package and the Arduino-1.8.5 IDE... has anybody an idea?
Thanks a lot, Holger
Teensy (3.5) with audio shield and Audio library seem to be a abolute nice solution for my project (porting Dexed (open source Yamaha DX7 simulation) to the Teensy). But my problems are starting at a simple point: My small test program for the AudioQueue crashes:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#define _RATE_ 128
// GUItool: begin automatically generated code
AudioPlayQueue queue1; //xy=764,393
AudioOutputI2S i2s1; //xy=1237,397
AudioConnection patchCord1(queue1, 0, i2s1, 0);
AudioConnection patchCord2(queue1, 0, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=784,602
// GUItool: end automatically generated code
void setup() {
Serial.begin(9600);
sgtl5000_1.enable();
sgtl5000_1.volume(0.4);
AudioMemory(8);
Serial.println("START");
}
void loop() {
int16_t* audio_buffer;
while (!queue1.available())
{
Serial.println("Block");
return;
}
audio_buffer = queue1.getBuffer();
if (audio_buffer == NULL)
{
Serial.println("No memory");
return;
}
queue1.playBuffer();
}
Perhaps I am doing something wrong? It starts, prints sometime that is is blocking and than the Teensy hangs
I am using the latest Teensy package and the Arduino-1.8.5 IDE... has anybody an idea?
Thanks a lot, Holger