You wrote to <[email protected]> on Fri, 20 May 2005 09:12:02 +0200:
OS> For my final application I will have not enough space on Hard Disk to OS> store WAV files, so I need to convert on fly a CD-DA track to a MP3 OS> file using LAME (creating the MP3 file step by step, each time passing OS> to LAME <n> blocks of PCM data frames of 2352 bytes read from CD-DA).
OS> NOTE: I found lame_encode_buffer_interleaved API, which seems the API I OS> could use. OS> I also analized XTracker Windows application, which seems to do OS> the same things I would like to do, but it uses LAME OS> DLL, while I will work under UNIX like platform. The OS> correspondances of LAME APIs used seem to be: OS> - beInitStream <---> lame_init OS> - beEncodeChunk <---> lame_encode_buffer_interleaved OS> - beDeinitStream <---> lame_init_params OS> - beCloseStream <---> lame_close OS> - beVersion <---> lame_init OS> - beWriteVBRHeader <---> lame_encode_flush OS> - beWriteVBRHeader <---> lame_mp3_tags_fid
OS> Is there some sample C/C++ code showing use of LAME to convert a CD-CA OS> track (PCM data) to MP3 step by step for a UNIX like platform, instead OS> of using WAV files?
I wrote something like this a while ago. Unfortunately, all the source code was lost when my HD crashed:(
But it is not that hard to figure out everything just by looking at the sources of lame front-end, ACM and/or DirectShow wrappers, and lame.h.
With best regards, Dmitriy Startsev.
_______________________________________________ mp3encoder mailing list [email protected] http://minnie.tuhs.org/mailman/listinfo/mp3encoder
