I want to record a sample and play it back (through a DSP) in parallel. Specifially I want to use the FFT mod but I don’t want to have to wait for my sample to replay all the way through a second time to get the FFT out. Is there a way to:
a) get the FFT to start while the sample is still recording
b) get the FFT without playing the sample through a DSP
- ApolloAndy asked 16 years ago
Actually, what I really want to do is play the sample back as soon as I record it, but without the play pointer overrunning the record pointer. I can’t seem to come up with good algorithm to keep the pointers tight without overrunning. (I use setfreq on the play pointer to keep it pretty close to the record pointer, but anytime i get “close enough” it ends up overrunning every now and then.)
<font size=-1>[ This Message was edited by: ApolloAndy on 2002-03-01 13:02 ]</font>
On 2002-02-28 15:09, brett wrote:
you could try modifying the fmod /record sample to add a FSOUND_DSP_GetSpectrum in the inner loop? It records and plays in realtime and the spectrum would be easy.
Upon further consideration, this is what I really want to do. How do I modify the inner loop of the fmod/record to include getspectrum? What is the inner loop anyway?
Please login first to submit.