Date: Tue, 10 May 2005 22:15:25 +0100
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 May 2005 07:43:46 +0000
changeset 1059de22ea8440d2
parent 1058 e6c91fd1911e
child 1060 86885b40a53b
Date: Tue, 10 May 2005 22:15:25 +0100
From: Peter Naulls
Subject: RISC OS SDL patch

Some of the RISC OS audio code is no longer used do to the switch to
/dev/dsp, and can be removed as per the attached diff.
src/video/riscos/SDL_riscostask.c
     1.1 --- a/src/video/riscos/SDL_riscostask.c	Mon May 16 05:55:17 2005 +0000
     1.2 +++ b/src/video/riscos/SDL_riscostask.c	Mon May 16 07:43:46 2005 +0000
     1.3 @@ -52,7 +52,6 @@
     1.4  /* RISC OS variables to help compatability with certain programs */
     1.5  int riscos_backbuffer = 0; /* Create a back buffer in system memory for full screen mode */
     1.6  int riscos_closeaction = 1; /* Close icon action */
     1.7 -int riscos_audiobuffer = 0; /* Audio buffer size */
     1.8  
     1.9  static int stored_mode = -1; /* -1 when in desktop, mode number or pointer when full screen */
    1.10  
    1.11 @@ -178,13 +177,6 @@
    1.12                      0 Don't show close icon
    1.13                      1 Show close icon
    1.14  
    1.15 -               SDL$<name>$AudioBuffer - set to number of samples to buffer
    1.16 -                    in advance. Will default to a minimum of 1024 or twice
    1.17 -                    amount requested by program whichever is largest.
    1.18 -                    If not specified default is amount for 10 csecs.
    1.19 -                    Time that will be pre-buffered can be calculated as
    1.20 -                    sample to buffer * 1000 / freq milliseconds.
    1.21 -                    
    1.22  ***************************************************************************/
    1.23  
    1.24  int RISCOS_GetTaskName(char *task_name)
    1.25 @@ -255,13 +247,6 @@
    1.26  			   env_val = getenv(env_var);
    1.27  			   if (env_val && strcmp(env_val,"0") == 0) riscos_closeaction = 0;
    1.28  
    1.29 -			   strcpy(env_var, "SDL$");
    1.30 -			   strcat(env_var, p);
    1.31 -			   strcat(env_var, "$AudioBuffer");
    1.32 -
    1.33 -			   env_val = getenv(env_var);
    1.34 -			   riscos_audiobuffer = atoi(env_val);
    1.35 -
    1.36  			   free(env_var);
    1.37  		   }
    1.38