stick a fork in it.... needs testing and tweaks but can now read and write to icecast via shout:// and or .mp3 files the traditional way

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4597 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-03-14 23:19:13 +00:00
1 parent 504798a64a
commit 84e012c0d9
3 files changed
+332 -138

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ void InitMP3Constants(void)
}
BOOL InitMP3(struct mpstr *mp, long outscale)
BOOL InitMP3(struct mpstr *mp, long outscale, int samplerate)
{
/* quiet 4096 med 8192 */
@@ -26,7 +26,7 @@ BOOL InitMP3(struct mpstr *mp, long outscale)
mp->fr.single = 3; /* force mono */
mp->bsnum = 0;
mp->synth_bo = 1;
mp->outsamplerate = 8000;
mp->outsamplerate = samplerate;
make_decode_tables_scale(mp, outscale);
@@ -190,7 +190,7 @@ int decodeMP3(struct mpstr *mp,char *in,int isize,char *out,
if(osize < 4608) {
debug_printf("%d To less out space\n", __LINE__);
return MP3_ERR;
return MP3_TOOSMALL;
}
if(in) {