From 7cee752ccab4d567a2f9ebc40a0a7645c914a06e Mon Sep 17 00:00:00 2001 From: Michel Kaempf Date: Tue, 14 Dec 1999 23:37:44 +0000 Subject: [PATCH] * .cvsignore : + Rajout du fichier core ; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * audio_output/audio_output.c : + Rajout de messages de debug : - nombre de frames audio dans la plage dat�e courante ; - dur�e de cette plage audio dat�e (en �s) ; - fr�quence du flux sonore pour cette plage dat�e ; * interface/intf_ctrl.c : - Correction du bug `help vlan' (mouahaha il manquait une virgule :-). --- .cvsignore | 1 + src/audio_output/audio_output.c | 5 +++++ src/interface/intf_ctrl.c | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.cvsignore b/.cvsignore index 6928ee973b..7ceacb6e52 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1,5 @@ .* +core dep gmon.out vlc diff --git a/src/audio_output/audio_output.c b/src/audio_output/audio_output.c index d4bf1534f2..2673bbea1c 100644 --- a/src/audio_output/audio_output.c +++ b/src/audio_output/audio_output.c @@ -506,6 +506,11 @@ static __inline__ int NextFrame( aout_thread_t * p_aout, aout_fifo_t * p_fifo/*, l_rate = (long)( ((mtime_t)l_units * 1000000) / (p_fifo->date[p_fifo->l_next_frame] - p_fifo->date[p_fifo->l_start_frame]) ); + intf_DbgMsg( "aout debug: %li frame(s), %lli µs, %li Hz\n", + (p_fifo->l_next_frame - p_fifo->l_start_frame) & AOUT_FIFO_SIZE, + p_fifo->date[p_fifo->l_next_frame] - p_fifo->date[p_fifo->l_start_frame], + l_rate ); + InitializeIncrement( &p_fifo->unit_increment, l_rate, p_aout->dsp.l_rate ); p_fifo->l_units = (((l_units - (p_fifo->l_unit - diff --git a/src/interface/intf_ctrl.c b/src/interface/intf_ctrl.c index 6ac632a02b..1cb46071ef 100644 --- a/src/interface/intf_ctrl.c +++ b/src/interface/intf_ctrl.c @@ -195,7 +195,7 @@ const intf_command_t control_command[] = /* usage: */ "vlan synchro\n" \ "vlan [intf=] request\n" \ "vlan [intf=] join \n" \ - "vlan [intf=] leave" + "vlan [intf=] leave", /* help: */ "Perform various operations on vlans. 'synchro' resynchronize " \ "with the server. 'request' ask which is the current vlan (for the default " \ "interface or for a given one). 'join' and 'leave' try to change vlan." }, @@ -259,17 +259,22 @@ static int Help( int i_argc, intf_arg_t *p_argv ) /* If called with an argument: look for the command and display it's help */ if( i_argc == 2 ) { +fprintf( stderr, "maxx debug: coin\n" ); for( i_index = 0; control_command[i_index].psz_name && strcmp( control_command[i_index].psz_name, p_argv[1].psz_str ); i_index++ ) { ; } +fprintf( stderr, "maxx debug: meuh\n" ); /* Command has been found in list */ if( control_command[i_index].psz_name ) { +fprintf( stderr, "maxx debug: meow\n" ); intf_IntfMsg( control_command[i_index].psz_usage ); +fprintf( stderr, "maxx debug: blah\n" ); intf_IntfMsg( control_command[i_index].psz_help ); +fprintf( stderr, "maxx debug: blih\n" ); } /* Command is unknown */ else