Re: [MP3 ENCODER] libmp3lame shared library?

2000-09-11 Thread Erik Gustavsson

On Sun, 10 Sep 2000, Greg Wooledge wrote:

Wow...   excellent answer, and fast... thanks!
 
  Is there a reason
  for *not* using shared libs?
 
 Yes.  For one, it's more complex.  (On Linux/ELF, it's nearly trivial;
 on something like HP-UX or AIX it's a bit harder than the above; and on
 Linux/a.out, you might as well just forget it entirely.)  Also, shared
 libraries take a little bit longer to load than statically linked code.
 Finally, the benefits of shared libraries (reduced disk space, and
 reduced memory usage if multiple copies of the shared lib are in use
 simultaneously) only occur if you link two or more programs with the
 same shared library.  Is this libmp3lame library really of use to any
 program other than lame?
 

Well, there is already platform specific stuff in the Makefile, shared
libs could be used on platforms where it works well... 

I certainly feel libmp3lame is of use to other programs (that must have
been the reason to move the code into a library in the first place?).

One more advantage with shared libraries for the end user (that only
installs binary packages, RPMs, DEBs etc for Linux) is that it is 
possible to upgrade the LAME library without upgrading RipperXYZ,
MP3recorder deluxe 2000 etc. There are in fact many uses of MP3, 
in my case I want to use LAME for a video editing program, to handle
MP3 compressed audio in AVI files...

Also, one last humble suggestion: GNU automake/autoconf?

/cyr

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



[MP3 ENCODER] libmp3lame shared library?

2000-09-10 Thread Erik Gustavsson

Hi!

This may be semi-offtopic because its more like a general Unix/Linux
question...  How can I compile libmp3lame as a shared library
(libmp3lame.so) ??   Can this be added as an alternative target in the
Makefile perhaps? Or even made the default for Linux?  Is there a reason
for *not* using shared libs?

/cyr

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



Re: [MP3 ENCODER] libmp3lame shared library?

2000-09-10 Thread Benjamin Reed

 same shared library.  Is this libmp3lame library really of use
 to any program other than lame?

Most definitely!  I've got a perl program called "DJ In A Box" that does
on-the-fly shoutcast streaming using the lame command line, and we're in the
process of trying to make a perl module using libmp3lame.  Unfortunately,
there's a lot of stuff right now that's kind of funky to have in a library
(printing status info to stderr).  The guy doing it is running into some
problems with one of the libmp3lame functions closing filehandles it didn't
open (I believe in the encode wrapper function, I'm not much of a C guy so I
can't elaborate), but other than that and the cosmetic stuff, it looks like
it will work just fine.

I just thought I'd chime in with a "yes"!  :)

--
Ben Reed a.k.a. Ranger Rick ([EMAIL PROTECTED])
http://defiance.dyndns.org/ / http://radio.scenespot.org/
Now playing on Defiance Radio: Spacefunk by Digital


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )