Hi. im using:
FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, mode, RECORDRATE, 255, 128, 255);
to allocate memory and:
to record data. New sample has always RECORDLEN length, even when i use:
My question is how to cut unnessesary stream, or set sample length?
- Unicrom asked 13 years ago
hmm ok..maybe ill ask in other way.FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, mode, RECORDRATE, 255, 128, 255) allocate memory. if RECORDLEN=10*44100 it will allocate memory for sample with byte rate 44100 and 10s length. But im stoping recording earlier, f. ex. after 4s. i dont want to save all 10s data because last 6s is useless. I want to save to wav file only 4s sample and nothing else. And finally my question is…how to do it?….anyway thx for answer.
- Unicrom answered 13 years ago
Please login first to submit.