Allow building SDL on Windows without audio support
authorSam Lantinga
Tue, 04 Sep 2001 23:21:20 +0000
changeset 1698039a5b760b9
parent 168 e92aa316c517
child 170 9427fb48592a
Allow building SDL on Windows without audio support
src/video/windib/SDL_dibvideo.c
src/video/windx5/SDL_dx5video.c
     1.1 --- a/src/video/windib/SDL_dibvideo.c	Tue Sep 04 23:18:45 2001 +0000
     1.2 +++ b/src/video/windib/SDL_dibvideo.c	Tue Sep 04 23:21:20 2001 +0000
     1.3 @@ -286,7 +286,9 @@
     1.4  	if ( DIB_CreateWindow(this) < 0 ) {
     1.5  		return(-1);
     1.6  	}
     1.7 +#ifndef DISABLE_AUDIO
     1.8  	DX5_SoundFocus(SDL_Window);
     1.9 +#endif
    1.10  
    1.11  	/* Determine the screen depth */
    1.12  	vformat->BitsPerPixel = DIB_SussScreenDepth();
     2.1 --- a/src/video/windx5/SDL_dx5video.c	Tue Sep 04 23:18:45 2001 +0000
     2.2 +++ b/src/video/windx5/SDL_dx5video.c	Tue Sep 04 23:21:20 2001 +0000
     2.3 @@ -876,7 +876,9 @@
     2.4  	if ( DX5_CreateWindow(this) < 0 ) {
     2.5  		return(-1);
     2.6  	}
     2.7 +#ifndef DISABLE_AUDIO
     2.8  	DX5_SoundFocus(SDL_Window);
     2.9 +#endif
    2.10  
    2.11  	/* Create the DirectDraw object */
    2.12  	result = DDrawCreate(NULL, &ddraw, NULL);