I'm really happy about all this discussion on making it more library-ish,
as i'm trying to make it available inside another product.
unfortunately the product is in perl, so i'm trying to work up a full
library binding to libmp3lame...
so the first thing i did was i made up a perl program, as a tester, that
called all the functions that main.c did, and then went through and made
sure that the functions it called behaived correctly from perl...
i'd like to take this opportunity to point out one of my pet peeves with
libmp3lame, and that is the lame_decoder() function takes a FILE* ... and
then helpfully closes it for you. so that you helpfully get a SIGSEGV
when you try to cleanup the files you open and close them again.
blah.
but otherwise, it's been going pretty good.
Also! there's been some talk of removing the cmd-line parsing code from
the library. i think that's a bad idea, at least until there's some
documentation on what you're supposed to set in that big bit-structure,
you have two choices, just feed it embedded cmd-args, or read the source.
while i'm okay reading the source, it shouldn't be that hard just to
figure which flag you need to set to get something done.
-answer
On Wed, 20 Sep 2000, Mark Taylor wrote:
> Date: Wed, 20 Sep 2000 17:58:03 -0600
> From: Mark Taylor <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [MP3 ENCODER] Lame as an embedded library
>
> >
> > I agree this 100%! I think we should make more simple mp3 encoding engine.
> > Compared with vorbis, what a messy code LAME is !
> >
> > I want to make "example" or "frontend" directory and move lame.c and gtk*,
> > brhist.c and so on into it.
> >
> > Any Ideas ?
> >
>
> I like "frontend". And also a "libmp3lame" directory for the library.
> Moving all this code into subdirectories will be disruptive:
> all the different makefiles and MSVC project files need
> to be updated. We will also need a ./configure/make system
> which will traverse the subdirectores.
>
> So lets agree ahead of time as to when and what will
> be done. Takehiro: are you volunteering?
>
> Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )