0
0

Hello,

I want to display an oscilliscope but without playing sounds. I looked at the dsppluginviewer demo, but when I remove de gSystem->playSound calls it won’t display anything when I play an mp3 with winamp. If I leave this call it will display something, however because of the sound playing it records its own sounds back and will start looping the music.

  • You must to post comments
0
0

if you just want to look at the sample data, look at Sound::lock / sound::unlock

edit: or if you want the same behaviour as getWaveData but with no sound use the FMOD_OUTPUT_NOSOUND output mode.

  • You must to post comments
0
0

I would like to display an oscilliscope like the dsppluginviewer, only with the sound coming from windows wave out mix. So when I play a mp3 in for example winamp I get to see the oscilliscope in de dsppluginviewer. Hower when I put the output to FMOD_OUTPUTTYPE_NOSOUND the ossciliscope does not react to any sound played.

  • You must to post comments
0
0

you are using the recording api to do this?
That is because the recording device matches the output device that you selected, and nosound has a null recording device.

If you just want it to be silent you might want to try muting the output using the DSP engine.
Try something like

system->getDSPHead(&dsphead);
dsphead->setInputMix(0);

and instead of using system->getWaveData use channel->getWaveData or masterchannelgroup->getWaveData (masterchannelgroup retrieved from System::getMasterChannelGroup).

This should mute the output just before it hits the soundcard, but not before it hits the channel or master channelgroup wavedata processor.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.