changeset 31620:508f24b02449

Remove disabled and pointless code.
author reimar
date Sat, 10 Jul 2010 23:18:45 +0000
parents b52f89b55334
children 92ae8fd74b7f
files libao2/ao_pcm.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_pcm.c	Sat Jul 10 23:11:45 2010 +0000
+++ b/libao2/ao_pcm.c	Sat Jul 10 23:18:45 2010 +0000
@@ -254,18 +254,6 @@
 // return: number of bytes played
 static int play(void* data,int len,int flags){
 
-// let libaf to do the conversion...
-#if 0
-//#if HAVE_BIGENDIAN
-    if (ao_data.format == AFMT_S16_LE) {
-      unsigned short *buffer = (unsigned short *) data;
-      register int i;
-      for(i = 0; i < len/2; ++i) {
-        buffer[i] = le2me_16(buffer[i]);
-      }
-    }
-#endif
-
     if (ao_data.channels == 5 || ao_data.channels == 6 || ao_data.channels == 8) {
         int frame_size = af_fmt2bits(ao_data.format) / 8;
         len -= len % (frame_size * ao_data.channels);