On Apr 27 2008, Rogério Brito wrote:
> The patch attached is needed for compilation here (both with the tarball
> and with HEAD).
It seems that the mailing list eats the attachments. Here goes the patch
inline:
Index: get_audio.c
===================================================================
RCS file: /cvsroot/lame/lame/frontend/get_audio.c,v
retrieving revision 1.124
diff -u -r1.124 get_audio.c
--- get_audio.c 13 Apr 2008 21:27:14 -0000 1.124
+++ get_audio.c 27 Apr 2008 21:48:47 -0000
@@ -649,8 +649,8 @@
gs_wfInfo.samplerate = lame_get_in_samplerate(gfp);
gs_wfInfo.channels = lame_get_num_channels(gfp);
gs_wfInfo.format = SF_FORMAT_RAW;
- if (in_endian != order_unknown) {
- if (in_endian == order_littleEndian) {
+ if (in_endian != ByteOrderUnknown) {
+ if (in_endian == ByteOrderLittleEndian) {
gs_wfInfo.format |= SF_ENDIAN_LITTLE;
}
else {
@@ -659,7 +659,7 @@
}
else {
/* we will never get here. it seems in_endian is always either little or big endian */
- if (machine_byte_order() == order_littleEndian) {
+ if (machine_byte_order() == ByteOrderLittleEndian) {
if (swapbytes)
gs_wfInfo.format |= SF_ENDIAN_BIG;
else
Index: main.h
===================================================================
RCS file: /cvsroot/lame/lame/frontend/main.h,v
retrieving revision 1.29
diff -u -r1.29 main.h
--- main.h 13 Apr 2008 21:27:14 -0000 1.29
+++ main.h 27 Apr 2008 21:48:47 -0000
@@ -33,7 +33,7 @@
/* GLOBAL VARIABLES used by parse.c and main.c.
- instantiated in parce.c. ugly, ugly */
+ instantiated in parse.c. ugly, ugly */
extern sound_file_format input_format;
extern int swapbytes; /* force byte swapping default=0 */
extern int silent;
@@ -54,5 +54,5 @@
#define Max(A, B) ((A) > (B) ? (A) : (B))
-enum ByteOrder { ByteOrderLittleEndian, ByteOrderBigEndian };
+enum ByteOrder { ByteOrderLittleEndian, ByteOrderBigEndian, ByteOrderUnknown };
extern enum ByteOrder in_endian;
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito :
http://meusite.mackenzie.com.br/rbritoProjects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev