Some minor c++ correctness changes. (#803)

Added const, static forward declaration.
Removed some unneeded header files.
This commit is contained in:
Andrea
2020-06-27 14:32:09 +01:00
committed by GitHub
parent 42d265a25c
commit fe62271ef9
5 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -224,7 +224,7 @@ void DSReleaseSoundBuffer(VOICE* pVoice)
//-----------------------------------------------------------------------------
bool DSZeroVoiceBuffer(PVOICE Voice, char* pszDevName, DWORD dwBufferSize)
bool DSZeroVoiceBuffer(PVOICE Voice, const char* pszDevName, DWORD dwBufferSize)
{
#ifdef NO_DIRECT_X
@@ -273,7 +273,7 @@ bool DSZeroVoiceBuffer(PVOICE Voice, char* pszDevName, DWORD dwBufferSize)
//-----------------------------------------------------------------------------
bool DSZeroVoiceWritableBuffer(PVOICE Voice, char* pszDevName, DWORD dwBufferSize)
bool DSZeroVoiceWritableBuffer(PVOICE Voice, const char* pszDevName, DWORD dwBufferSize)
{
DWORD dwDSLockedBufferSize0=0, dwDSLockedBufferSize1=0;
SHORT *pDSLockedBuffer0, *pDSLockedBuffer1;