Hello,
I have the Teensy 3.2 and I am adding audio effects that involve memory storage (like delay) and I was wondering if the memory used for that is RAM?
I am also wondering what the "AudioMemory" is for the audio projects. is that the amount of RAM you are setting aside for this storage?
I am trying to use the full extent of the Teensy capabilities
With the Teensy 3.2 I would have 64 kB of RAM so for the following code would the math look like this:
2 byte (16 bit) * 16384 (array size) = 32768 kbyte?
Thanks,
Aaron
I have the Teensy 3.2 and I am adding audio effects that involve memory storage (like delay) and I was wondering if the memory used for that is RAM?
I am also wondering what the "AudioMemory" is for the audio projects. is that the amount of RAM you are setting aside for this storage?
I am trying to use the full extent of the Teensy capabilities
With the Teensy 3.2 I would have 64 kB of RAM so for the following code would the math look like this:
2 byte (16 bit) * 16384 (array size) = 32768 kbyte?
Code:
AudioMemory(64);
sgtl5000_1.enable();
sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);
sgtl5000_1.volume(0.5);
sgtl5000_1.lineInLevel(0);
sgtl5000_1.lineOutLevel(13);
queue2.begin();
}
void loop()
{
uint16_t sampleQueue[16384];
uint16_t *queueP = sampleQueue;
for(x=0;x<16;x++)
{
if(queue2.available() >= 2)
{
memcpy(queueP + 256*x, queue2.readBuffer(), 256);
}
queue2.freeBuffer();
}
Thanks,
Aaron