Added large sound buffer option to Win32 port

This commit is contained in:
pagefault
2001-04-22 01:24:51 +00:00
parent 2b2e0cbac6
commit e7546d7d7d
4 changed files with 21 additions and 5 deletions

View File

@@ -185,6 +185,7 @@ void initwinvideo();
extern BYTE StereoSound;
extern DWORD SoundQuality;
extern BYTE Surround;
extern BYTE LargeSoundBuf;
extern int CurKeyPos;
extern int CurKeyReadPos;
extern int KeyBuffer[16];
@@ -460,7 +461,6 @@ int RegisterWinClass ( void )
return TRUE;
}
void ShutdownApplication()
{
@@ -521,6 +521,11 @@ InitSound()
wfx.nSamplesPerSec = 11025;
}
if (LargeSoundBuf == 1)
{
SoundBufferSize*=2;
}
if(StereoSound==1)
{
wfx.nChannels = 2;