From 27f6950525cef900b8fce09001123c5a117b2790 Mon Sep 17 00:00:00 2001 From: Marco Zuehlke Date: Wed, 3 Dec 2003 10:52:41 +0000 Subject: use _x_ao_mode2channels in post-plugins CVS patchset: 5829 CVS date: 2003/12/03 10:52:41 --- src/post/visualizations/fftgraph.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/post/visualizations/fftgraph.c') diff --git a/src/post/visualizations/fftgraph.c b/src/post/visualizations/fftgraph.c index 1953563b7..40a667621 100644 --- a/src/post/visualizations/fftgraph.c +++ b/src/post/visualizations/fftgraph.c @@ -20,7 +20,7 @@ * FftGraph Visualization Post Plugin For xine * by Thibaut Mattern (tmattern@noos.fr) * - * $Id: fftgraph.c,v 1.7 2003/11/26 19:30:17 mroi Exp $ + * $Id: fftgraph.c,v 1.8 2003/12/03 10:52:41 andruil Exp $ * */ @@ -233,22 +233,6 @@ static int fftgraph_rewire_video(xine_post_out_t *output_gen, void *data) return 1; } -static int mode_channels( int mode ) { - switch( mode ) { - case AO_CAP_MODE_MONO: - return 1; - case AO_CAP_MODE_STEREO: - return 2; - case AO_CAP_MODE_4CHANNEL: - return 4; - case AO_CAP_MODE_5CHANNEL: - return 5; - case AO_CAP_MODE_5_1CHANNEL: - return 6; - } - return 0; -} - static int fftgraph_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode) { @@ -264,7 +248,7 @@ static int fftgraph_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream this->bits = bits; this->mode = mode; - this->channels = mode_channels(mode); + this->channels = _x_ao_mode2channels(mode); if( this->channels > MAXCHANNELS ) this->channels = MAXCHANNELS; this->lines_per_channel = FFTGRAPH_HEIGHT / this->channels; -- cgit v1.2.3