We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following code:
void ofApp::setup(){ player1.setup(); player2.setup(); player1.addSoundEffect("switch_on.wav", 1); player1.loadAllAudio(); player2.addSoundEffect("switch_off.wav", 1); player2.loadAllAudio(); }
and
void ofApp::touchDown(ofTouchEventArgs &touch){ if(touch.x < ofGetWidth()/2) { player1.playSound(0); } else { player2.playSound(0); } }
on this case, player2 is correctly setup, but no sound is played.
If i comment these lines:
player1.addSoundEffect("switch_on.wav", 1); player1.loadAllAudio();
then player2 plays perfectly.
If I load sounds and audio into player2 first, then player1 doesn't play at all and player2 plays fine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following code:
and
on this case, player2 is correctly setup, but no sound is played.
If i comment these lines:
then player2 plays perfectly.
If I load sounds and audio into player2 first, then player1 doesn't play at all and player2 plays fine.
The text was updated successfully, but these errors were encountered: