From 4d3a2c7e0dac38546f5fc2c7737a6ec1f09e30f6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Jun 2013 19:15:32 +0200 Subject: audio/out: remove ao->outburst/buffersize fields The core didn't use these fields, and use of them was inconsistent accross AOs. Some didn't use them at all. Some only set them; the values were completely unused by the core. Some made full use of them. Remove these fields. In places where they are still needed, make them private AO state. Remove the --abs option. It set the buffer size for ao_oss and ao_dsound (being ignored by all other AOs), and was already marked as obsolete. If it turns out that it's still needed for ao_oss or ao_dsound, their default buffer sizes could be adjusted, and if even that doesn't help, AO suboptions could be added in these cases. --- audio/out/ao_sdl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'audio/out/ao_sdl.c') diff --git a/audio/out/ao_sdl.c b/audio/out/ao_sdl.c index 572266c4a8..ee95e77d44 100644 --- a/audio/out/ao_sdl.c +++ b/audio/out/ao_sdl.c @@ -248,9 +248,7 @@ static int init(struct ao *ao, char *params) } ao->samplerate = obtained.freq; - ao->buffersize = obtained.size * bufcnt; - ao->outburst = obtained.size; - priv->buffer = av_fifo_alloc(ao->buffersize); + priv->buffer = av_fifo_alloc(obtained.size * bufcnt); priv->buffer_mutex = SDL_CreateMutex(); if (!priv->buffer_mutex) { mp_msg(MSGT_AO, MSGL_ERR, "[sdl] SDL_CreateMutex failed\n"); -- cgit v1.2.3