I have not been able to play a simple sine-wave generated by the DSP yet. When I try this:

FMOD::System *audiosystem;
FMOD::DSP *sine_oscillator;
FMOD::Channel *channel;

result = FMOD::System_Create(&audiosystem);
result = audiosystem->init(100, FMOD_INIT_NORMAL, 0);

result = audiosystem->createDSPByType(
FMOD_DSP_TYPE_OSCILLATOR, & sine_oscillator);

result = audiosystem->addDSP( sine_oscillator);
result = sine_oscillator->setDefaults( 440.0, 0.8, 0.0, 128);
result = sine_oscillator->setActive(true);

result = audiosystem->playDSP(FMOD_CHANNEL_FREE, sine_oscillator, false, &channel );

I get the error FMOD_ERR_DSP_CONNECTION from the playDSP call. How should this be done?

  • Jorma
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.