# HG changeset patch # User cladisch # Date 1139829389 0 # Node ID adfab82139c0111912d55aa48a6c6edec9010dba # Parent 92431bc3d0149d1de6db2719a4b53f7211dc3fcc After removing play_mmap(), the play() function just unconditionally calls play_normal(). This indirection is now superfluous. diff -r 92431bc3d014 -r adfab82139c0 libao2/ao_alsa.c --- a/libao2/ao_alsa.c Mon Feb 13 11:15:25 2006 +0000 +++ b/libao2/ao_alsa.c Mon Feb 13 11:16:29 2006 +0000 @@ -776,16 +776,6 @@ return(1); /* ok, data should be accepted again */ } -static int play_normal(void* data, int len); - -static int play(void* data, int len, int flags) -{ - int result; - result = play_normal(data, len); - - return result; -} - /* plays 'len' bytes of 'data' returns: number of bytes played @@ -793,7 +783,7 @@ thanxs for marius for giving us the light ;) */ -static int play_normal(void* data, int len) +static int play(void* data, int len, int flags) { //bytes_per_sample is always 4 for 2 chn S16_LE