示例#1
0
void DeviceTestApp::setupNoise()
{
    mGen = audio::master()->makeNode( new audio::GenNoiseNode() );

    mGen->connect( mGain );
    mGen->enable();
}
示例#2
0
void DeviceTestApp::setupSine()
{
    mGen = audio::master()->makeNode( new audio::GenSineNode() );
    mGen->setFreq( 440 );

    mGen->connect( mGain );
    mGen->enable();
}