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!
PS. Some technical data, perhaps it helps:
– I initialise the system like this:
fmodsystem->setSoftwareFormat(44100, FMOD_SOUND_FORMAT_PCM16, 1, 0, FMOD_DSP_RESAMPLER_LINEAR);
fmodsystem->init(32, FMOD_INIT_NORMAL, 0);
I do a Sleep(10) before every system->update()
during sound creation I pass the flags: FMOD_2D | FMOD_SOFTWARE | FMOD_OPENUSER
- acgrama asked 8 years ago
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 😀
Please login first to submit.