fix -loop problem

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9590 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-03-15 10:11:36 +00:00
parent f89de81e9f
commit 5ae779673c
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ static int init(int rate,int channels,int format,int flags)
waveOutGetVolume(hWaveOut,&restoredvolume); waveOutGetVolume(hWaveOut,&restoredvolume);
//allocate buffer memory as one big block //allocate buffer memory as one big block
buffer = malloc(totalBufferSize); buffer = malloc(totalBufferSize);
memset(buffer,0x0,totalBufferSize);
//and setup pointers to each buffer //and setup pointers to each buffer
waveBlocks = (WAVEHDR*)buffer; waveBlocks = (WAVEHDR*)buffer;
buffer += sizeof(WAVEHDR) * BUFFER_COUNT; buffer += sizeof(WAVEHDR) * BUFFER_COUNT;