mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-29 08:30:04 +00:00
Fix a linux/gcc issue where sizeof(wchar_t)==4. (PR #1218)
This commit is contained in:
parent
96a386a77a
commit
0ecd2e865a
@ -634,14 +634,14 @@ static ULONG Spkr_SubmitWaveBuffer_FullSpeed(short* pSpeakerBuffer, ULONG nNumSa
|
||||
|
||||
if(dwBufferSize0)
|
||||
{
|
||||
wmemset((wchar_t*)pDSLockedBuffer0, (wchar_t)DCFilter(g_nSpeakerData), dwBufferSize0/sizeof(wchar_t));
|
||||
std::fill_n(pDSLockedBuffer0, dwBufferSize0/sizeof(short), DCFilter(g_nSpeakerData));
|
||||
if (g_bSpkrOutputToRiff)
|
||||
RiffPutSamples(pDSLockedBuffer0, dwBufferSize0/sizeof(short));
|
||||
}
|
||||
|
||||
if(pDSLockedBuffer1)
|
||||
{
|
||||
wmemset((wchar_t*)pDSLockedBuffer1, (wchar_t)DCFilter(g_nSpeakerData), dwBufferSize1/sizeof(wchar_t));
|
||||
std::fill_n(pDSLockedBuffer1, dwBufferSize1/sizeof(short), DCFilter(g_nSpeakerData));
|
||||
if (g_bSpkrOutputToRiff)
|
||||
RiffPutSamples(pDSLockedBuffer1, dwBufferSize1/sizeof(short));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user