What about doing this instead since the fix you made does not seem to work.
Actually: How can it work when you define AFMT_S24_* and AFMT_S32_* to
the same value and use them in a switch?
Anyway I found this somewhere on the net in another context, but could
that be a reasonable fix? :
/* in the event we don't have the extended soundcard.h, we still need
to compile successfully. Supply definitions */
#ifndef AFMT_S24_LE
# define AFMT_S24_LE 0x00000800
#endif
#ifndef AFMT_S24_BE
# define AFMT_S24_BE 0x00001000
#endif
#ifndef AFMT_U24_LE
# define AFMT_U24_LE 0x00002000
#endif
#ifndef AFMT_U24_BE
# define AFMT_U24_BE 0x00004000
#endif
#ifndef AFMT_S32_LE
# define AFMT_S32_LE 0x00008000
#endif
#ifndef AFMT_S32_BE
# define AFMT_S32_BE 0x00010000
#endif
#ifndef AFMT_U32_LE
# define AFMT_U32_LE 0x00020000
#endif
#ifndef AFMT_U32_BE
# define AFMT_U32_BE 0x00040000
#endif
Claudio Ciccani wrote:
CVSROOT: /cvs/directfb
Module name: FusionSound
Changes by: klan 20050726 18:20:08
Modified files:
src/core : core_sound.c
Log message:
Use AFMT_QUERY if AFMT_S24_* and AFMT_S32_* are not defined in
sys/soundcard.h.
It should be fixed now.
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev