<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi again,</FONT></DIV>
<DIV><FONT face=Arial size=2>p</FONT></DIV>
<DIV><FONT face=Arial size=2>I did a port of your <STRONG>shoutcast~</STRONG> to
linux,</FONT></DIV>
<DIV><FONT face=Arial size=2>but I didn't use any "black magic"</FONT></DIV>
<DIV><FONT face=Arial size=2>( like adding a counter ),</FONT></DIV>
<DIV><FONT face=Arial size=2>I rather did the following modifications
to</FONT></DIV>
<DIV><FONT face=Arial size=2>your first posted version :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>a/ make the port to linux, including the
makefile.</FONT></DIV>
<DIV><FONT face=Arial size=2>You might to fix the path to your
<STRONG>libmp3lame.so</STRONG> in the makefile.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>b/ change the code for allocation which might have
been </FONT></DIV>
<DIV><FONT face=Arial size=2>responsible for the crashes.</FONT></DIV>
<DIV><FONT face=Arial size=2>In lame documentation, it is said that when you
encode N samples,</FONT></DIV>
<DIV><FONT face=Arial size=2>your mp3 buffer must be 1,25*N+7200 bytes
!!!</FONT></DIV>
<DIV><FONT face=Arial size=2>I guess it's not science here, but rather taken
from experiment.</FONT></DIV>
<DIV><FONT face=Arial size=2>I declared the requested buffers
accordingly.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>c/ change </FONT></DIV>
<DIV><FONT face=Arial size=2> <STRONG>(short)
*in1++*32768</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>to </FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG> (short)
(*in1++*32768)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>yes, that's why you had zeros ,</FONT></DIV>
<DIV><FONT face=Arial size=2>because the cast was made BEFORE
multiplication !!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>d/ make a -DSHOUTCAST or -DICECAST toggle for
compilation,</FONT></DIV>
<DIV><FONT face=Arial size=2>it seems that they are not using the same port
number.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>e/ change some more code to follow the
rules</FONT></DIV>
<DIV><FONT face=Arial size=2>of external writing HOWTO </FONT></DIV>
<DIV><FONT face=Arial size=2>( to read first for anyone who wants to make
externals</FONT><FONT face=Arial size=2> )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The remaining problems are :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>a/ I haven't tried to compile it for
windows,</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't have such a compilation
environment.</FONT></DIV>
<DIV><FONT face=Arial size=2>So, you could get some errors.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>b/ there are some clicks in the sound
received,</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't know the reason, it seems to
happen</FONT></DIV>
<DIV><FONT face=Arial size=2>for each buffer boundary ( 65536 samples
).</FONT></DIV>
<DIV><FONT face=Arial size=2>I'll check this later.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yves/</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PS : from this external, an mp3 file encoder must
be rather straightforward,</FONT></DIV>
<DIV><FONT face=Arial size=2>I'll try to do it.</FONT></DIV></BODY></HTML>