Hi

Thanks ... but the definitions of AFMT_S24_LE
and AFMT_S32_LE does not seem to be in my soundcard.h file.... Any ideas why?

Regards Martin Lütken

Claudio Ciccani wrote:

Martin Lütken wrote:

Hi

I'm having trouble compiling FusionSound! Compiler says:

compiling core_sound.o (gcc)
core_sound.c:508: error: `AFMT_S24_LE' undeclared (first use in this function) core_sound.c:546: error: `AFMT_S32_LE' undeclared (first use in this function) core_sound.c:803: error: `AFMT_S24_LE' undeclared (first use in this function) core_sound.c:807: error: `AFMT_S32_LE' undeclared (first use in this function) core_sound.c:842: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** Exit with status: 2 ***


Tried to grep for the missing defines in fusion sound and directfb directories, but no luck!

Any suggestions. I'm using normal make files, but perhaps I'm doing something wrong during configure!


It should be defined in /usr/include/linux/soundcard.h.


[EMAIL PROTECTED]:klan]$ grep AFMT /usr/include/linux/soundcard.h
#  define AFMT_S16_NE AFMT_S16_BE
#  define AFMT_S16_NE AFMT_S16_LE
# define AFMT_QUERY 0x00000000 /* Return current fmt */# define AFMT_MU_LAW 0x00000001
#       define AFMT_A_LAW               0x00000002
#       define AFMT_IMA_ADPCM           0x00000004
#       define AFMT_U8                  0x00000008
# define AFMT_S16_LE 0x00000010 /* Little endian signed 16*/ # define AFMT_S16_BE 0x00000020 /* Big endian signed 16 */
#       define AFMT_S8                  0x00000040
# define AFMT_U16_LE 0x00000080 /* Little endian U16 */ # define AFMT_U16_BE 0x00000100 /* Big endian U16 */ # define AFMT_MPEG 0x00000200 /* MPEG (2) audio */
#       define AFMT_AC3         0x00000400      /* Dolby Digital AC3 */
#       define AFMT_S24_LE              0x00000800
#       define AFMT_S24_BE              0x00001000
#       define AFMT_U24_LE              0x00002000
#       define AFMT_U24_BE              0x00004000
#       define AFMT_S32_LE              0x00008000
#       define AFMT_S32_BE              0x00010000
#       define AFMT_U32_LE              0x00020000
#       define AFMT_U32_BE              0x00040000




_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to