summaryrefslogtreecommitdiff
path: root/src/post/visualizations/fftscope.c
diff options
context:
space:
mode:
authorMarco Zuehlke <andruil@users.sourceforge.net>2003-12-03 10:52:41 +0000
committerMarco Zuehlke <andruil@users.sourceforge.net>2003-12-03 10:52:41 +0000
commit27f6950525cef900b8fce09001123c5a117b2790 (patch)
treedb2287cddb9b0649faae12f76d5d2cd059c86067 /src/post/visualizations/fftscope.c
parent84491c5973a2f27cb157951779c42f60fe91b0cb (diff)
downloadxine-lib-27f6950525cef900b8fce09001123c5a117b2790.tar.gz
xine-lib-27f6950525cef900b8fce09001123c5a117b2790.tar.bz2
use _x_ao_mode2channels in post-plugins
CVS patchset: 5829 CVS date: 2003/12/03 10:52:41
Diffstat (limited to 'src/post/visualizations/fftscope.c')
-rw-r--r--src/post/visualizations/fftscope.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c
index d349f8603..ff59f28ed 100644
--- a/src/post/visualizations/fftscope.c
+++ b/src/post/visualizations/fftscope.c
@@ -22,7 +22,7 @@
*
* FFT code by Steve Haehnichen, originally licensed under GPL v1
*
- * $Id: fftscope.c,v 1.21 2003/11/26 19:30:17 mroi Exp $
+ * $Id: fftscope.c,v 1.22 2003/12/03 10:52:41 andruil Exp $
*
*/
@@ -315,22 +315,6 @@ static int fftscope_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 fftscope_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream,
uint32_t bits, uint32_t rate, int mode) {
@@ -342,7 +326,7 @@ static int fftscope_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->samples_per_frame = rate / FPS;