TonicAudio/ofxTonic

‘ofAudioEventArgs’ has not been declared

hamoid opened this issue · 2 comments

Hi! I'm trying to make sounds using ofxTonic, but I get

.../addons/ofxTonic/src/ofxTonicSynth.h:44: error: ‘ofAudioEventArgs’ has not been declared

when running the included Tonic examples. I noticed that I can make it work by removing this line from ofxTonicSynth.h

void audioRequested(ofAudioEventArgs& args);

And these three lines from ofxTonicSynth.c

...
ofAddListener(ofEvents().audioRequested, this, &ofxTonicSynth::audioRequested);
...
ofRemoveListener(ofEvents().audioRequested, this, &ofxTonicSynth::audioRequested);
...
void ofxTonicSynth::audioRequested(ofAudioEventArgs& args){}

The problem is, I don't know what are the consequences of removing these lines, and what was their original purpose.

Should I rewrite those removed lines in a different way, perhaps?

I did try downloading changes from Tonic (not ofxTonic) from the master branch but that did not help. I guess something changed in openFrameworks during the last years...

All of that stuff is just to interface with oF and has nothing to do with
Tonic core. Should be ok to remove.

On Saturday, March 12, 2016, Abe Pazos notifications@github.com wrote:

Hi! I'm trying to make sounds using ofxTonic, but I get

.../addons/ofxTonic/src/ofxTonicSynth.h:44: error: ‘ofAudioEventArgs’ has
not been declared

when running the included Tonic examples. I noticed that I can make it
work by removing this line from ofxTonicSynth.h

void audioRequested(ofAudioEventArgs& args);

And these three lines from ofxTonicSynth.c

...
ofAddListener(ofEvents().audioRequested, this,
&ofxTonicSynth::audioRequested);
...
ofRemoveListener(ofEvents().audioRequested, this,
&ofxTonicSynth::audioRequested);
...
void ofxTonicSynth::audioRequested(ofAudioEventArgs& args){}

The problem is, I don't know what are the consequences of removing these
lines, and what was their original purpose.

Should I rewrite those removed lines in a different way, perhaps?

I did try downloading changes from Tonic (not ofxTonic) from the master
branch but that did not help. I guess something changed in openFrameworks
during the last years...


Reply to this email directly or view it on GitHub
#13.

Morgan Packard Programmer + Designer

234 Broadway, Suite 1
Cambridge, MA 02139
617 661 6680

Thanks. I found a fork that updates all examples for the latest OF version:

https://github.com/jeonghopark/ofxTonic