Hi, On 20 November 2008 17:39, Max Kellermann <[EMAIL PROTECTED]> wrote: > What type does NeAACDecInit2() expect on your machine? It's "unsigned > long *samplerate" on the latest unmodified release (2.6.1), and it > compiles without warnings here. I think you meant NeAACDecInit(), not NeAACDecInit2(). The mpd code calls faacDecInit() which is defined to NeAACDecInit() in neaacdec.h. Btw this doesn't matter while the signatures of these two functions are the same in this header for me: -- /* Init the library based on info from the AAC file (ADTS/ADIF) */ long NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, unsigned char *buffer, unsigned long buffer_size, unsigned long *samplerate, unsigned char *channels);
/* Init the library using a DecoderSpecificInfo */ char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer, unsigned long SizeOfDecoderSpecificInfo, unsigned long *samplerate, unsigned char *channels); -- Versions: faad2: 2.6.1-r2 (-r2 means this is patched by Gentoo, however, we have the same unsigned long * for the samplerate argument.) neaacdec.h: $Id: neaacdec.h,v 1.11 2007/11/01 12:33:29 menno Exp $ gcc: gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.1) maybe differenc gcc version? [[ my embarrassing question: do you have x86_64, like me? ]] ;) Regards, Kodest ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team