platform: remove unneeded argument from SNDDMA_Init

This commit is contained in:
Alibek Omarov 2019-07-12 00:32:09 +03:00
parent 37255354d4
commit b2895770b8
4 changed files with 4 additions and 4 deletions

View File

@ -1840,7 +1840,7 @@ qboolean S_Init( void )
Cmd_AddCommand( "spk", S_SayReliable_f, "reliable play a specified sententce" ); Cmd_AddCommand( "spk", S_SayReliable_f, "reliable play a specified sententce" );
Cmd_AddCommand( "speak", S_Say_f, "playing a specified sententce" ); Cmd_AddCommand( "speak", S_Say_f, "playing a specified sententce" );
if( !SNDDMA_Init( host.hWnd )) if( !SNDDMA_Init( ) )
{ {
Con_Printf( "Audio: sound system can't be initialized\n" ); Con_Printf( "Audio: sound system can't be initialized\n" );
return false; return false;

View File

@ -199,7 +199,7 @@ static const char *SNDDMA_Android_Init( void )
return NULL; return NULL;
} }
qboolean SNDDMA_Init( void *hwnd) qboolean SNDDMA_Init( void )
{ {
const char *initError; const char *initError;

View File

@ -118,7 +118,7 @@ qboolean SW_CreateBuffer( int width, int height, uint *stride, uint *bpp, uint *
============================================================================== ==============================================================================
*/ */
// initializes cycling through a DMA buffer and returns information on it // initializes cycling through a DMA buffer and returns information on it
qboolean SNDDMA_Init( void *hInst ); qboolean SNDDMA_Init( void );
int SNDDMA_GetSoundtime( void ); int SNDDMA_GetSoundtime( void );
void SNDDMA_Shutdown( void ); void SNDDMA_Shutdown( void );
void SNDDMA_BeginPainting( void ); void SNDDMA_BeginPainting( void );

View File

@ -63,7 +63,7 @@ Try to find a sound device to mix for.
Returns false if nothing is found. Returns false if nothing is found.
================== ==================
*/ */
qboolean SNDDMA_Init( void *hInst ) qboolean SNDDMA_Init( void )
{ {
SDL_AudioSpec desired, obtained; SDL_AudioSpec desired, obtained;
int samplecount; int samplecount;