Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘ofAudioEventArgs’ has not been declared #13

Open
hamoid opened this issue Mar 12, 2016 · 2 comments
Open

‘ofAudioEventArgs’ has not been declared #13

hamoid opened this issue Mar 12, 2016 · 2 comments

Comments

@hamoid
Copy link
Contributor

hamoid commented Mar 12, 2016

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...

@morganpackard
Copy link
Member

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 [email protected] 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

@hamoid
Copy link
Contributor Author

hamoid commented Mar 13, 2016

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

https://github.com/jeonghopark/ofxTonic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants