changeset 28819:eabcc805acb1

Remove now unused buf_write_pos variable from ao_win32
author reimar
date Fri, 06 Mar 2009 18:53:29 +0000
parents e3d54ef875a5
children 0581bb91e78e
files libao2/ao_win32.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_win32.c	Fri Mar 06 18:50:50 2009 +0000
+++ b/libao2/ao_win32.c	Fri Mar 06 18:53:29 2009 +0000
@@ -87,7 +87,6 @@
 static WAVEHDR*     waveBlocks;         //pointer to our ringbuffer memory
 static HWAVEOUT     hWaveOut;           //handle to the waveout device
 static unsigned int buf_write=0;
-static unsigned int buf_write_pos=0;
 static volatile int full_buffers=0;
 static volatile int buffered_bytes=0;
 
@@ -240,7 +239,6 @@
         buffer += BUFFER_SIZE;
     }
     buf_write=0;
-    buf_write_pos=0;
     full_buffers=0;
     buffered_bytes=0;
 
@@ -265,7 +263,6 @@
 {
    	waveOutReset(hWaveOut);
 	buf_write=0;
-    buf_write_pos=0;
 	full_buffers=0;
 	buffered_bytes=0;
 }
@@ -301,7 +298,7 @@
            waveOutUnprepareHeader(hWaveOut, current, sizeof(WAVEHDR));
 	x=BUFFER_SIZE;          
     if(x>len) x=len;                   
-    fast_memcpy(current->lpData+buf_write_pos,data+len2,x); 
+    fast_memcpy(current->lpData,data+len2,x); 
     full_buffers++;
     len2+=x; len-=x;                 
 	buffered_bytes+=x;