Browse Source

platform: remove unneeded argument from SNDDMA_Init

pull/2/head
Alibek Omarov 5 years ago
parent
commit
b2895770b8
  1. 2
      engine/client/s_main.c
  2. 2
      engine/platform/android/snd_opensles.c
  3. 2
      engine/platform/platform.h
  4. 2
      engine/platform/sdl/s_sdl.c

2
engine/client/s_main.c

@ -1840,7 +1840,7 @@ qboolean S_Init( void ) @@ -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;

2
engine/platform/android/snd_opensles.c

@ -199,7 +199,7 @@ static const char *SNDDMA_Android_Init( void ) @@ -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;

2
engine/platform/platform.h

@ -118,7 +118,7 @@ qboolean SW_CreateBuffer( int width, int height, uint *stride, uint *bpp, uint * @@ -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 );

2
engine/platform/sdl/s_sdl.c

@ -63,7 +63,7 @@ Try to find a sound device to mix for. @@ -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;

Loading…
Cancel
Save