0
0

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

[code:zjcgdwf7]
FMOD::System *audiosystem;
FMOD::DSP *sine_oscillator;
FMOD_RESULT result;
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 );
[/code:zjcgdwf7]

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.