Mercurial > mplayer.hg
comparison mplayer.c @ 3107:ef2287ccc42b
Changes to audio out plugin, first plugin added
author | anders |
---|---|
date | Sun, 25 Nov 2001 14:29:54 +0000 |
parents | 81ea8a5488cc |
children | 45d8fe54f1ea |
comparison
equal
deleted
inserted
replaced
3106:fd7651748dec | 3107:ef2287ccc42b |
---|---|
214 static int play_n_frames=-1; | 214 static int play_n_frames=-1; |
215 | 215 |
216 // screen info: | 216 // screen info: |
217 char* video_driver=NULL; //"mga"; // default | 217 char* video_driver=NULL; //"mga"; // default |
218 char* audio_driver=NULL; | 218 char* audio_driver=NULL; |
219 char* audio_plugins=NULL; | |
219 static int fullscreen=0; | 220 static int fullscreen=0; |
220 static int vidmode=0; | 221 static int vidmode=0; |
221 static int softzoom=0; | 222 static int softzoom=0; |
222 static int flip=-1; | 223 static int flip=-1; |
223 static int screen_size_x=0;//SCREEN_SIZE_X; | 224 static int screen_size_x=0;//SCREEN_SIZE_X; |
755 } | 756 } |
756 if (!audio_out){ | 757 if (!audio_out){ |
757 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_InvalidAOdriver,audio_driver); | 758 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_InvalidAOdriver,audio_driver); |
758 exit_player(MSGTR_Exit_error); | 759 exit_player(MSGTR_Exit_error); |
759 } | 760 } |
760 /*DSP!! if(dsp) audio_out->control(AOCONTROL_SET_DEVICE,(int)dsp);*/ | 761 /* Initailize audio plugin interface if used */ |
762 if(audio_plugins){ | |
763 for (i=0; audio_out_drivers[i] != NULL; i++){ | |
764 const ao_info_t *info = audio_out_drivers[i]->info; | |
765 if(strcmp(info->short_name,"plugin") == 0){ | |
766 audio_out_drivers[i]->control(AOCONTROL_SET_PLUGIN_DRIVER,(int)audio_out); | |
767 audio_out_drivers[i]->control(AOCONTROL_SET_PLUGIN_LIST,(int)audio_plugins); | |
768 audio_out = audio_out_drivers[i]; | |
769 break; | |
770 } | |
771 } | |
772 } | |
773 | |
774 | |
761 | 775 |
762 current_module="spudec"; | 776 current_module="spudec"; |
763 vo_spudec=spudec_new(); | 777 vo_spudec=spudec_new(); |
764 if (vo_spudec!=NULL) | 778 if (vo_spudec!=NULL) |
765 inited_flags|=INITED_SPUDEC; | 779 inited_flags|=INITED_SPUDEC; |