I have a little problem, I can’t understand how the FSOUND_Sample_Lock/Unlock works, I used the SaveToWav() function in order to save the data into wav, then I used the lame_enc.dll to encode into mp3, but my question is , Is it possible to encode directly to mp3 format when we record some stuff ? If yes can you show me some simple source or example of how to do that, I searched at this forum and Found the Encoder.zip, I looked the source but it only converts wav files to mp3, it doesnt record directly to mp3, Thx in advance.
- ocZio asked 13 years ago
Yes, it is possible to encode directly to mp3. FSOUND_Sample_Lock/Unlock simply give you pointers to the raw PCM data for the specified sample. So, you would do something like, FSOUND_Sample_Lock, use pointer to raw PCM data to send to lame_enc.dll, FSOUND_Sample_Unlock. Just like the record example really except you call lame_enc.dll functions instead of SaveToWav. Check out the lame_enc.dll docs for more info on how to use lame_enc.dll.
Please login first to submit.