I’m trying to write an audio recorder (similar to the recorderexample). The program compiles but after I download and run the program I get the message ‘ Not Enough Memory”. Has anyone had this problem. Do I have to compress my input or something gefore compact. Pleae let me know. Your suggestions would be appreciated.
- whoopi asked 14 years ago
I am doing the same thing on a WinCE device where I have limited RAM so I need to work with about a 5MB buffer for recording. I want to assign a background thread to possibly compress and write the recorded data out to the storage device while recording is live. I’ve looked at the documentation and the samples. I have a working recorder based off of the sample code, but I am Locking and Writing the sample at the end of the recording, not during. I see no documentation on thread-safeness or the interaction of SampleLock with other API such as RecordStartSample. I assume I can Lock/Unlock a portion of a sample buffer while recording as long as the portion is not currently being written. Is this true?
Thanks for any advice, we will probably purchase a commercial license
for the library but we are trying to fully evaluate it first.
- mrjoltcola answered 14 years ago
This is exactly what I’ve done. I’m not using any thread synchronization yet. So far I haven’t run into any thread problems as I’m only copying
data out with that thread. I need to test a buffer underrun condition
to see what happens if the compression thread falls behind and gets lapped by the recoder.
- mrjoltcola answered 13 years ago
Please login first to submit.