Re: [patch] Replace internal mpglib with libmpg123 usage

Thomas Orgis <[email protected]> Wed, 13 Sep 2017 16:49:41 +0200
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <20170913164941.6ffd39fa@pocke>
Am Wed, 13 Sep 2017 16:11:38 +0200
schrieb Thomas Orgis <[email protected]>: 

> I am not sure if the use of fileno() and mpg123_open_fd() works out on
> Windows.

Just insert

	mpg123_replace_reader(global.hip->mh, read, lseek);

before the call to mpg123_open_fd() and the correct runtime's read and
seek function should be used, matching the descriptor we hand in. This
does not hurt other systems and could be seen as a general precaution
for someone building lame with a different libc than the one libmpg123
is linked against.


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