[MPlayer-dev-eng] [PATCH] ao_kai support

Diego Biurrun diego at biurrun.de
Fri Jan 15 19:45:49 CET 2010


On Sat, Jan 16, 2010 at 01:06:30AM +0900, KO Myung-Hun wrote:
> 
> This is a patch for ao_kai support.
> 
> --- libao2/ao_kai.c	(revision 0)
> +++ libao2/ao_kai.c	(revision 0)
> @@ -0,0 +1,332 @@
> +
> +
> +LIBAO_EXTERN(kai)
> +
> +#define OUTBURST_SAMPLES        512
> +#define DEFAULT_SAMPLES         (OUTBURST_SAMPLES << 2)
> +
> +#define CHUNK_SIZE  ao_data.outburst
> +
> +static AVFifoBuffer *m_audioBuf;
> +
> +static int m_nBufSize = 0;
> +
> +static volatile int m_fQuit = FALSE;
> +
> +static KAISPEC  m_kaiSpec;

Looks like a lot of global vars...

> +
> +// close audio device
> +static void uninit(int immed)
> +{
> +    m_fQuit = TRUE;
> +
> +    if (!immed) {
> +        while (kaiStatus() & KAIS_PLAYING)
> +            DosSleep(1);
> +    }

pointless {}

> --- configure	(revision 30272)
> +++ configure	(working copy)
> @@ -5896,6 +5900,26 @@
> 
>  if os2 ; then
> +echocheck "KAI (UNIAUD/DART)"
> +if test "$_kai" = auto; then
> +  cat > $TMPC << EOF
> +#include <os2.h>
> +#include <kai.h>
> +int main( void ) { return 0; }

main(void)

No more comments from my side.

Diego



More information about the MPlayer-dev-eng mailing list