win32: fix spu wav writer

This commit is contained in:
zeromus 2009-01-09 08:10:14 +00:00
parent 750bd43ce2
commit e323960213
3 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Graphics:
bug: fix texture mapping across texture banks [zeromus]
bug: fix texture handling for texels with MSB set (fixes some texture corruption) [zeromus]
bug: fix thumb ROR [zeromus]
bug: win32: fix spu wav file writer (regression from 0.8) [zeromus]
enh: dont memcmp for texcache validity when the texture banks arent unmapping [zeromus]
0.8 -> 0.9

View File

@ -1352,7 +1352,7 @@ void SNDFileUpdateAudio(s16 *buffer, u32 num_samples)
size_t elems_written;
if (spufp) {
elems_written = fwrite((void *)buffer, num_samples*2, 2, spufp);
INFO("%i written\n", elems_written);
//INFO("%i written\n", elems_written);
}
}

View File

@ -946,6 +946,12 @@ DWORD WINAPI run()
LeaveCriticalSection(&win_sync);
SPU_Emulate_core();
//we are driving the dsound output from another thread
//but there is no thread for the filewriter. so we need to do it here
if(sndcoretype == SNDCORE_FILEWRITE)
SPU_Emulate_user();
//avi writing
DRV_AviSoundUpdate(SPU_core->outbuf,spu_core_samples);
DRV_AviVideoUpdate((u16*)GPU_screen);