comparison mplayer.c @ 1237:53b23aee5aa7

Added some nice vo/ao info.
author atmos4
date Wed, 27 Jun 2001 11:39:17 +0000
parents 149beb275b64
children 7f69c1dd1e91
comparison
equal deleted inserted replaced
1236:ebe9659da559 1237:53b23aee5aa7
1 // AVI & MPEG Player v0.11 (C) 2000-2001. by A'rpi/ESP-team 1 // AVI & MPEG Player v0.18 (C) 2000-2001. by A'rpi/ESP-team
2 2
3 #include <stdio.h> 3 #include <stdio.h>
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <string.h> 5 #include <string.h>
6 6
1359 vidmode?"vm ":"", 1359 vidmode?"vm ":"",
1360 softzoom?"zoom ":"", 1360 softzoom?"zoom ":"",
1361 (flip==1)?"flip ":"" 1361 (flip==1)?"flip ":""
1362 // fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3) 1362 // fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3)
1363 ); 1363 );
1364 printf("VO: Description: %s\n"
1365 "VO: Author: %s\n",
1366 info->name,
1367 info->author
1368 );
1369 if(strlen(info->comment) > 0)
1370 printf("VO: Comment: %s\n", info->comment);
1364 } 1371 }
1365 1372
1366 // if(verbose) printf("Destination size: %d x %d out_fmt=%0X\n", 1373 // if(verbose) printf("Destination size: %d x %d out_fmt=%0X\n",
1367 // screen_size_x,screen_size_y,out_fmt); 1374 // screen_size_x,screen_size_y,out_fmt);
1368 1375
1453 1460
1454 //================ SETUP AUDIO ========================== 1461 //================ SETUP AUDIO ==========================
1455 current_module="setup_audio"; 1462 current_module="setup_audio";
1456 1463
1457 if(has_audio){ 1464 if(has_audio){
1465
1466 const ao_info_t *info=audio_out->info;
1467 printf("AO: [%s] %iHz %s %s\n"
1468 "AO: Description: %s\n"
1469 "AO: Author: %s\n",
1470 info->short_name,
1471 force_srate?force_srate:sh_audio->samplerate,
1472 sh_audio->channels>1?"Stereo":"Mono",
1473 audio_out_format_name(sh_audio->sample_format),
1474 info->name,
1475 info->author
1476 );
1477 if(strlen(info->comment) > 0)
1478 printf("AO: Comment: %s\n", info->comment);
1458 1479
1459 if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate, 1480 if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate,
1460 sh_audio->channels,sh_audio->sample_format,0)){ 1481 sh_audio->channels,sh_audio->sample_format,0)){
1461 printf("couldn't open/init audio device -> NOSOUND\n"); 1482 printf("couldn't open/init audio device -> NOSOUND\n");
1462 has_audio=0; 1483 has_audio=0;