changeset 9589:1823fdaffa73

fix -loop problem
author faust3
date Sat, 15 Mar 2003 10:11:36 +0000
parents b57a0f03627f
children ad8223e04c4f
files libao2/ao_win32.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_win32.c	Fri Mar 14 23:22:35 2003 +0000
+++ b/libao2/ao_win32.c	Sat Mar 15 10:11:36 2003 +0000
@@ -152,6 +152,7 @@
 	waveOutGetVolume(hWaveOut,&restoredvolume); 
 	//allocate buffer memory as one big block
 	buffer = malloc(totalBufferSize);
+	memset(buffer,0x0,totalBufferSize);
     //and setup pointers to each buffer 
     waveBlocks = (WAVEHDR*)buffer;
     buffer += sizeof(WAVEHDR) * BUFFER_COUNT;