From f88193091b3de59b496633682b659cd388e24a59 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Jun 2013 18:47:02 +0200 Subject: audio/out: don't require AOs to set ao->bps Some still do, because they use the value in other places of the init function. ao_portaudio is tricky and reads ao->bps in the stream thread, which might be started on initialization (not sure about that, but better safe than sorry). --- audio/out/ao_rsound.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'audio/out/ao_rsound.c') diff --git a/audio/out/ao_rsound.c b/audio/out/ao_rsound.c index 1c0b534ab4..3fdf2b8cac 100644 --- a/audio/out/ao_rsound.c +++ b/audio/out/ao_rsound.c @@ -140,8 +140,6 @@ static int init(struct ao *ao, char *params) return -1; } - ao->bps = ao->channels.num * ao->samplerate * af_fmt2bits(ao->format) / 8; - return 0; } -- cgit v1.2.3