0
0

Hello all,

as part of a more complex app I am getting the spectrum of a sound while recording (playing back in "mute" mode a small snippet during recording). I have spectrum size = 512, and the values I’m getting are very small, around the order of magnitude e-10. The trouble is, I am getting these values even with the mic muted, so I am guessing they are only noise in the first place?

I have tried with spectrum size = 8192 and larger, but then I’m getting mostly zeros in the spectrum.

Does anyone have any advice regarding this?
Thank you in advance!
–Cristina.

PS. Some technical data, perhaps it helps:
– I initialise the system like this:
[code:3ap734qq]
fmodsystem->setOutput(FMOD_OUTPUTTYPE_DSOUND);
fmodsystem->setSoftwareFormat(44100, FMOD_SOUND_FORMAT_PCM16, 1, 0, FMOD_DSP_RESAMPLER_LINEAR);
fmodsystem->init(32, FMOD_INIT_NORMAL, 0);
[/code:3ap734qq]

  • I do a Sleep(10) before every system->update()

  • during sound creation I pass the flags: FMOD_2D | FMOD_SOFTWARE | FMOD_OPENUSER

  • You must to post comments
0
0

I am not 100% sure, but the problem might have been in my app.

  • You must to post comments
0
0

Edit: judging from the change in title I assume you have resolved your issue.

  • You must to post comments
0
0

Yes indeed! I changed the spectrum window shape (to rectangular) and size (made it smaller), because I had a hunch the problem might be due to a "lag" or inertia in the spectrum computation. I’m just a noob in these things, but that seems to have solved my problem 😀

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.