minor fixes
This commit is contained in:
parent
f96f12099f
commit
17ec06eb28
|
@ -33,12 +33,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
|
||||||
#include <string.h>
|
|
||||||
#else
|
|
||||||
#error need string.h
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "Exception.h"
|
#include "Exception.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
@ -253,7 +247,7 @@ LameLibEncoder :: conv16 ( unsigned char * pcmBuffer,
|
||||||
unsigned short int value;
|
unsigned short int value;
|
||||||
|
|
||||||
value = pcmBuffer[i++];
|
value = pcmBuffer[i++];
|
||||||
value += pcmBuffer[i++] << 8;
|
value |= pcmBuffer[i++] << 8;
|
||||||
leftBuffer[j] = (short int) value;
|
leftBuffer[j] = (short int) value;
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
|
@ -264,10 +258,10 @@ LameLibEncoder :: conv16 ( unsigned char * pcmBuffer,
|
||||||
unsigned short int value;
|
unsigned short int value;
|
||||||
|
|
||||||
value = pcmBuffer[i++];
|
value = pcmBuffer[i++];
|
||||||
value += pcmBuffer[i++] << 8;
|
value |= pcmBuffer[i++] << 8;
|
||||||
leftBuffer[j] = (short int) value;
|
leftBuffer[j] = (short int) value;
|
||||||
value = pcmBuffer[i++];
|
value = pcmBuffer[i++];
|
||||||
value += pcmBuffer[i++] << 8;
|
value |= pcmBuffer[i++] << 8;
|
||||||
rightBuffer[j] = (short int) value;
|
rightBuffer[j] = (short int) value;
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
|
@ -366,6 +360,8 @@ LameLibEncoder :: flush ( void )
|
||||||
"couldn't write all from encoder to underlying sink",
|
"couldn't write all from encoder to underlying sink",
|
||||||
ret - written);
|
ret - written);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sink->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -389,6 +385,9 @@ LameLibEncoder :: close ( void ) throw ( Exception )
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.6 2001/09/15 11:35:08 darkeye
|
||||||
|
minor fixes
|
||||||
|
|
||||||
Revision 1.5 2001/09/02 09:54:12 darkeye
|
Revision 1.5 2001/09/02 09:54:12 darkeye
|
||||||
fixed typos in CVS substition keywords
|
fixed typos in CVS substition keywords
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LAME_LIB
|
#ifdef HAVE_LAME_LAME_H
|
||||||
#include <lame/lame.h>
|
#include <lame/lame.h>
|
||||||
#else
|
#else
|
||||||
#error need lame/lame.h
|
#error need lame/lame.h
|
||||||
|
@ -462,6 +462,9 @@ class LameLibEncoder : public AudioEncoder, public virtual Reporter
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.7 2001/09/15 11:35:08 darkeye
|
||||||
|
minor fixes
|
||||||
|
|
||||||
Revision 1.6 2001/09/14 19:31:06 darkeye
|
Revision 1.6 2001/09/14 19:31:06 darkeye
|
||||||
added IceCast2 / vorbis support
|
added IceCast2 / vorbis support
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue