Mercurial > mplayer.hg
comparison libmpdemux/demux_rawaudio.c @ 10594:57bdcdb061d7
Removed the historic cfgparser and switched full to the new config parser (altought some macros still remain for compatibility). As a side effect 90% of the warning messages are gone from the core. Things should be cleaner now and less confusing for newbies.
author | alex |
---|---|
date | Wed, 13 Aug 2003 16:29:32 +0000 |
parents | 2865ea4eca4b |
children | 65ed62e138fa |
comparison
equal
deleted
inserted
replaced
10593:27711ab2889f | 10594:57bdcdb061d7 |
---|---|
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <unistd.h> | 6 #include <unistd.h> |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "../m_option.h" | 9 #include "../m_option.h" |
10 #include "../m_config.h" | |
11 | 10 |
12 #include "stream.h" | 11 #include "stream.h" |
13 #include "demuxer.h" | 12 #include "demuxer.h" |
14 #include "stheader.h" | 13 #include "stheader.h" |
15 | 14 |
18 static int channels = 2; | 17 static int channels = 2; |
19 static int samplerate = 44100; | 18 static int samplerate = 44100; |
20 static int samplesize = 2; | 19 static int samplesize = 2; |
21 static int format = 0x1; // Raw PCM | 20 static int format = 0x1; // Raw PCM |
22 | 21 |
23 config_t demux_rawaudio_opts[] = { | 22 m_option_t demux_rawaudio_opts[] = { |
24 { "on", &demuxer_type, CONF_TYPE_FLAG, 0,0, DEMUXER_TYPE_RAWAUDIO, NULL }, | 23 { "on", &demuxer_type, CONF_TYPE_FLAG, 0,0, DEMUXER_TYPE_RAWAUDIO, NULL }, |
25 { "channels", &channels, CONF_TYPE_INT,CONF_RANGE,1,8, NULL }, | 24 { "channels", &channels, CONF_TYPE_INT,CONF_RANGE,1,8, NULL }, |
26 { "rate", &samplerate, CONF_TYPE_INT,CONF_RANGE,1000,8*48000, NULL }, | 25 { "rate", &samplerate, CONF_TYPE_INT,CONF_RANGE,1000,8*48000, NULL }, |
27 { "samplesize", &samplesize, CONF_TYPE_INT,CONF_RANGE,1,8, NULL }, | 26 { "samplesize", &samplesize, CONF_TYPE_INT,CONF_RANGE,1,8, NULL }, |
28 { "format", &format, CONF_TYPE_INT, CONF_MIN, 0 , 0, NULL }, | 27 { "format", &format, CONF_TYPE_INT, CONF_MIN, 0 , 0, NULL }, |