Howdy all,
I am working on integrating a tonesweep object into a larger project of mine.
From the testing I have done so far the tonesweep object appears to start but it does not output any audio.
I have been able to use the isPlaying() and read() commands to see that the tone sweep is successfully running but I have been unable to get audio out of it.
My main project works as intended besides the tone sweep part of it so I do not think that the issue is related to my audio path.
I have created a very simple test script to help debug my issue, even this test script is not working.
I am running all of this code on a teensy 4.0, I have tried both with and without USB audio mode enabled and I am unable to get output from the tone sweep object in either case.
Here is my simple test script...
Any help is greatly appreciated!
I am working on integrating a tonesweep object into a larger project of mine.
From the testing I have done so far the tonesweep object appears to start but it does not output any audio.
I have been able to use the isPlaying() and read() commands to see that the tone sweep is successfully running but I have been unable to get audio out of it.
My main project works as intended besides the tone sweep part of it so I do not think that the issue is related to my audio path.
I have created a very simple test script to help debug my issue, even this test script is not working.
I am running all of this code on a teensy 4.0, I have tried both with and without USB audio mode enabled and I am unable to get output from the tone sweep object in either case.
Here is my simple test script...
Any help is greatly appreciated!
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthToneSweep tonesweep1; //xy=457.00000381469727,233.00000381469727
AudioOutputSPDIF3 spdif3_1; //xy=648.0000076293945,237.00000381469727
AudioConnection patchCord1(tonesweep1, 0, spdif3_1, 0);
AudioConnection patchCord2(tonesweep1, 0, spdif3_1, 1);
// GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
tonesweep1.play(1, 100, 1000, 30);
}
void loop() {
// put your main code here, to run repeatedly:
while(1){}
}