changeset 17617:adfab82139c0

After removing play_mmap(), the play() function just unconditionally calls play_normal(). This indirection is now superfluous.
author cladisch
date Mon, 13 Feb 2006 11:16:29 +0000
parents 92431bc3d014
children 270f61c80d46
files libao2/ao_alsa.c
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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 <marius@rospot.com> 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