Hi everybody,
I've got a pretty simple question for seasoned C programmers, but not me
I've generated some C code from a PureData patch via https://enzienaudio.com/. I've got that running on my local machine with libsoundio, so that part is tested and verified.
I'd like to patch the output into I2S on Teensy. What part of the library should I look at for glue code to do that?
I'm looking at the i2s output
https://github.com/PaulStoffregen/Audio/blob/master/output_i2s.cpp
and some audio generator, like
https://github.com/PaulStoffregen/Audio/blob/master/synth_waveform.cpp
but I'm unsure as to how to make the connection.
Looking at the Arduino examples (e.g. https://github.com/PaulStoffregen/Audio/blob/master/examples/Synthesis/Waveforms/Waveforms.ino), I see that they are connected via AudioConnections, but how is that implemented?
In other words, what is the interface for the AudioStream (?) Is it just the
method?
Thanks, guys!
I've got a pretty simple question for seasoned C programmers, but not me
I've generated some C code from a PureData patch via https://enzienaudio.com/. I've got that running on my local machine with libsoundio, so that part is tested and verified.
I'd like to patch the output into I2S on Teensy. What part of the library should I look at for glue code to do that?
I'm looking at the i2s output
https://github.com/PaulStoffregen/Audio/blob/master/output_i2s.cpp
and some audio generator, like
https://github.com/PaulStoffregen/Audio/blob/master/synth_waveform.cpp
but I'm unsure as to how to make the connection.
Looking at the Arduino examples (e.g. https://github.com/PaulStoffregen/Audio/blob/master/examples/Synthesis/Waveforms/Waveforms.ino), I see that they are connected via AudioConnections, but how is that implemented?
In other words, what is the interface for the AudioStream (?) Is it just the
Code:
void AudioSynthWaveform::update(void)
Thanks, guys!