Re: mpg123 porting: libmp3lame non-parallel init code?

Thomas Orgis <[email protected]> Sun, 27 Aug 2017 22:46:41 +0200
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <20170827224641.65851498@sturbolzen>
Am Sun, 27 Aug 2017 13:41:37 +0200
schrieb Thomas Orgis <[email protected]>: 

> So … is this necessary for wrapping libmpg123 inside libmp3lame? Am I
> correct in believing that there is no entry point for non-threadsafe
> initialisation?

Ah, I looked at the wrong place. I now realise that the mpglib
equivalent, InitMP3() is called from hip_decode_init() for each new
handle. So it overwrites the static tables each time and we already
don't bother.

I'll just ensure then that calling mpg123_init() multiple times is
safe. It should be … but it's not promised in the API.


Alrighty then,

Thomas
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Lame-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lame-dev