mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 09:01:54 +00:00
Use SDL 2 instead of SDL 1.2
This commit is contained in:
parent
4432a80a3c
commit
f478761e07
13 changed files with 404 additions and 540 deletions
|
@ -137,7 +137,6 @@ SNDDMA_Init
|
|||
*/
|
||||
qboolean SNDDMA_Init(void)
|
||||
{
|
||||
char drivername[128];
|
||||
SDL_AudioSpec desired;
|
||||
SDL_AudioSpec obtained;
|
||||
int tmp;
|
||||
|
@ -166,9 +165,7 @@ qboolean SNDDMA_Init(void)
|
|||
|
||||
Com_Printf( "OK\n" );
|
||||
|
||||
if (SDL_AudioDriverName(drivername, sizeof (drivername)) == NULL)
|
||||
strcpy(drivername, "(UNKNOWN)");
|
||||
Com_Printf("SDL audio driver is \"%s\".\n", drivername);
|
||||
Com_Printf( "SDL audio driver is \"%s\".\n", SDL_GetCurrentAudioDriver( ) );
|
||||
|
||||
memset(&desired, '\0', sizeof (desired));
|
||||
memset(&obtained, '\0', sizeof (obtained));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue