Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofSoundBuffer &outBuffer multiple outputs

$
0
0

@antocreo wrote:

Hi everyone,
I have made a class out of the basic SoundBuffer example from OF0908 that is called Pulse.
What I am trying to do is to create an array of Pulse that plays in the main ofApp with different settings.
I managed to make one Pulse object sound but if I create an array or just 2 separate objects I can hear no sound.

here is the code in my ofApp

void ofApp::audioOut(ofSoundBuffer &outBuffer) {

   for ( int j=0; j<NUM_SENS; j++ ) {
        myPulse[j].audioOut(outBuffer, 100 * avrgRMSAcc , lastSens, avrgRMSSens);      //this dowsn't work
            }

    myPulse1.audioOut(outBuffer, 100 * avrgRMSAcc, lastSens, avrgRMSSens);        //this is working ok alone
}

Any idea anyone?

Cheers!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles