From b2895770b80acc3d0577580be3bef7fa062c76ac Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 12 Jul 2019 00:32:09 +0300 Subject: [PATCH] platform: remove unneeded argument from SNDDMA_Init --- engine/client/s_main.c | 2 +- engine/platform/android/snd_opensles.c | 2 +- engine/platform/platform.h | 2 +- engine/platform/sdl/s_sdl.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/s_main.c b/engine/client/s_main.c index f99a835d..bbc1a77f 100644 --- a/engine/client/s_main.c +++ b/engine/client/s_main.c @@ -1840,7 +1840,7 @@ qboolean S_Init( void ) Cmd_AddCommand( "spk", S_SayReliable_f, "reliable play 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" ); return false; diff --git a/engine/platform/android/snd_opensles.c b/engine/platform/android/snd_opensles.c index b0d64d33..09f3821d 100644 --- a/engine/platform/android/snd_opensles.c +++ b/engine/platform/android/snd_opensles.c @@ -199,7 +199,7 @@ static const char *SNDDMA_Android_Init( void ) return NULL; } -qboolean SNDDMA_Init( void *hwnd) +qboolean SNDDMA_Init( void ) { const char *initError; diff --git a/engine/platform/platform.h b/engine/platform/platform.h index 5425b6a2..8767fe70 100644 --- a/engine/platform/platform.h +++ b/engine/platform/platform.h @@ -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 -qboolean SNDDMA_Init( void *hInst ); +qboolean SNDDMA_Init( void ); int SNDDMA_GetSoundtime( void ); void SNDDMA_Shutdown( void ); void SNDDMA_BeginPainting( void ); diff --git a/engine/platform/sdl/s_sdl.c b/engine/platform/sdl/s_sdl.c index 1dfd362b..8c5a3551 100644 --- a/engine/platform/sdl/s_sdl.c +++ b/engine/platform/sdl/s_sdl.c @@ -63,7 +63,7 @@ Try to find a sound device to mix for. Returns false if nothing is found. ================== */ -qboolean SNDDMA_Init( void *hInst ) +qboolean SNDDMA_Init( void ) { SDL_AudioSpec desired, obtained; int samplecount;