Mercurial > mplayer.hg
comparison libmpcodecs/dec_audio.c @ 7614:ce6a938aa6d3
Adding -format and -af switches
author | anders |
---|---|
date | Sun, 06 Oct 2002 11:23:02 +0000 |
parents | 32efb806436e |
children | 0b3b1cbebd99 |
comparison
equal
deleted
inserted
replaced
7613:ff6bcf692358 | 7614:ce6a938aa6d3 |
---|---|
23 #ifdef USE_FAKE_MONO | 23 #ifdef USE_FAKE_MONO |
24 int fakemono=0; | 24 int fakemono=0; |
25 #endif | 25 #endif |
26 /* used for ac3surround decoder - set using -channels option */ | 26 /* used for ac3surround decoder - set using -channels option */ |
27 int audio_output_channels = 2; | 27 int audio_output_channels = 2; |
28 af_cfg_t af_cfg; // Configuration for audio filters | |
28 | 29 |
29 static ad_functions_t* mpadec; | 30 static ad_functions_t* mpadec; |
30 | 31 |
31 void afm_help(){ | 32 void afm_help(){ |
32 int i; | 33 int i; |
253 afs->output.nch = out_channels ? out_channels : afs->input.nch; | 254 afs->output.nch = out_channels ? out_channels : afs->input.nch; |
254 afs->output.format = out_format ? out_format : afs->input.format; | 255 afs->output.format = out_format ? out_format : afs->input.format; |
255 afs->output.bps = out_bps ? out_bps : afs->input.bps; | 256 afs->output.bps = out_bps ? out_bps : afs->input.bps; |
256 | 257 |
257 // filter config: | 258 // filter config: |
258 afs->cfg.force = 0; | 259 memcpy(&afs->cfg,&af_cfg,sizeof(af_cfg_t)); |
259 afs->cfg.list = NULL; | |
260 | 260 |
261 mp_msg(MSGT_DECAUDIO, MSGL_INFO, "Building audio filter chain for %dHz/%dch/%dbit -> %dHz/%dch/%dbit...\n", | 261 mp_msg(MSGT_DECAUDIO, MSGL_INFO, "Building audio filter chain for %dHz/%dch/%dbit -> %dHz/%dch/%dbit...\n", |
262 afs->input.rate,afs->input.nch,afs->input.bps*8, | 262 afs->input.rate,afs->input.nch,afs->input.bps*8, |
263 afs->output.rate,afs->output.nch,afs->output.bps*8); | 263 afs->output.rate,afs->output.nch,afs->output.bps*8); |
264 | 264 |