[Mplayer-cvslog] CVS: main/libao2 ao_sdl.c,1.2,1.3

GEREOFFY arpi_esp at users.sourceforge.net
Sun Jun 3 23:26:25 CEST 2001


Update of /cvsroot/mplayer/main/libao2
In directory usw-pr-cvs1:/tmp/cvs-serv21454

Modified Files:
	ao_sdl.c 
Log Message:
-abs support

Index: ao_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sdl.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ao_sdl.c	2001/06/03 20:54:46	1.2
--- ao_sdl.c	2001/06/03 21:26:23	1.3
***************
*** 41,46 ****
  // General purpose Ring-buffering routines
  
! #define BUFFSIZE 1024
! #define NUM_BUFS 64
  
  static unsigned char *buffer[NUM_BUFS];
--- 41,46 ----
  // General purpose Ring-buffering routines
  
! #define BUFFSIZE 4096
! #define NUM_BUFS 16
  
  static unsigned char *buffer[NUM_BUFS];
***************
*** 157,160 ****
--- 157,163 ----
  	} 
  	
+ 	printf("SDL buf size = %d\n",aspec.size);
+ 	if(ao_buffersize==-1) ao_buffersize=16*aspec.size;
+ 	
  	/* unsilence audio, if callback is ready */
  	SDL_PauseAudio(0);
***************
*** 210,214 ****
  // return: how many unplayed bytes are in the buffer
  static int get_delay(){
!     return buffered_bytes;
  }
  
--- 213,217 ----
  // return: how many unplayed bytes are in the buffer
  static int get_delay(){
!     return buffered_bytes + ao_buffersize;
  }
  


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list