1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-04 21:27:58 +00:00

-abs support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@975 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-06-03 21:26:23 +00:00
parent fb101ef867
commit d50dcca06e

View File

@ -40,8 +40,8 @@ LIBAO_EXTERN(sdl)
// General purpose Ring-buffering routines
#define BUFFSIZE 1024
#define NUM_BUFS 64
#define BUFFSIZE 4096
#define NUM_BUFS 16
static unsigned char *buffer[NUM_BUFS];
@ -156,6 +156,9 @@ void callback(void *userdata, Uint8 *stream, int len); userdata is the pointer s
return(0);
}
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);
@ -209,7 +212,7 @@ static int play(void* data,int len,int flags){
// return: how many unplayed bytes are in the buffer
static int get_delay(){
return buffered_bytes;
return buffered_bytes + ao_buffersize;
}