Ticket #114: libao2.afmt.h2.patch

File libao2.afmt.h2.patch, 910 bytes (added by aquatique@…, 22 years ago)

Quick and dirty hack just in order to compile :)

  • libao2/afmt.h

    old new  
    3232#       define AFMT_AC3                 0x00000400      /* Dolby Digital AC3 */
    3333#endif
    3434
     35#ifndef __FreeBSD__
     36
    3537/* 24 bit formats from the linux kernel */
    3638#ifndef AFMT_S24_LE
    3739#define AFMT_S24_LE             0x00000800
    … …  
    4648#define AFMT_S32_BE             0x00010000
    4749#define AFMT_U32_LE             0x00020000
    4850#define AFMT_U32_BE             0x00040000
     51#endif
     52# else
     53#define AFMT_S24_LE             0x00010000
     54#define AFMT_S24_BE             0x00020000
     55#define AFMT_U24_LE             0x00040000
     56#define AFMT_U24_BE             0x00200000
    4957#endif
    5058
    5159/* native endian formats */
  • libao2/pl_format.c

    old new  
    1212#include <string.h>
    1313#include <unistd.h>
    1414#include <inttypes.h>
     15#include <sys/soundcard.h>
    1516
    1617#include "audio_out.h"
    1718#include "audio_plugin.h"