Hi,
I am developing an application in VxWorks o.s. (UNIX like platform) using
LAME 3.96.1 to convert CD-DA tracks to MP3 files.
I am currently converting CD-DA tracks to WAV files, before launching LAME.
I compiled and executed LAME 3.96.1 with VxWorks successfully.
For my final application I will have not enough space on Hard Disk to store
WAV files, so I need to convert on fly a CD-DA track to a MP3 file using
LAME (creating the MP3 file step by step, each time passing to LAME <n>
blocks of PCM data frames of 2352 bytes read from CD-DA).
NOTE: I found lame_encode_buffer_interleaved API, which seems the API I
could use.
I also analized XTracker Windows application, which seems to do the
same things I would like to do, but it uses LAME
DLL, while I will work under UNIX like platform. The correspondances
of LAME APIs used seem to be:
- beInitStream <---> lame_init
- beEncodeChunk <---> lame_encode_buffer_interleaved
- beDeinitStream <---> lame_init_params
- beCloseStream <---> lame_close
- beVersion <---> lame_init
- beWriteVBRHeader <---> lame_encode_flush
- beWriteVBRHeader <---> lame_mp3_tags_fid
Is there some sample C/C++ code showing use of LAME to convert a CD-CA track
(PCM data) to MP3 step by step for a UNIX like platform, instead of using
WAV files?
Thanks and regards,
Stefano
_______________________________________________
mp3encoder mailing list
[email protected]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder