diff options
Diffstat (limited to 'src/xine-engine/metronom.h')
-rw-r--r-- | src/xine-engine/metronom.h | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/src/xine-engine/metronom.h b/src/xine-engine/metronom.h index 03933ce6f..ccf6de7ec 100644 --- a/src/xine-engine/metronom.h +++ b/src/xine-engine/metronom.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: metronom.h,v 1.46 2003/04/23 14:33:01 miguelfreitas Exp $ + * $Id: metronom.h,v 1.47 2003/04/25 15:34:46 mroi Exp $ * * metronom: general pts => virtual calculation/assoc * @@ -39,9 +39,6 @@ * encoded streams. * */ -/* For the _MSC_VER (Win32) port the "this" variable - * was removed from all prototypes.and changed to "met" - */ #ifndef HAVE_METRONOM_H #define HAVE_METRONOM_H @@ -82,7 +79,7 @@ struct metronom_s { * * parameter pts_per_smpls : 1/90000 sec per 65536 samples */ - void (*set_audio_rate) (metronom_t *, int64_t pts_per_smpls); + void (*set_audio_rate) (metronom_t *self, int64_t pts_per_smpls); /* * called by video output driver for *every* frame @@ -96,7 +93,7 @@ struct metronom_s { * */ - void (*got_video_frame) (metronom_t *, vo_frame_t *frame); + void (*got_video_frame) (metronom_t *self, vo_frame_t *frame); /* * called by audio output driver whenever audio samples are delivered to it @@ -111,7 +108,7 @@ struct metronom_s { * */ - int64_t (*got_audio_samples) (metronom_t *, int64_t pts, + int64_t (*got_audio_samples) (metronom_t *self, int64_t pts, int nsamples); /* @@ -124,7 +121,7 @@ struct metronom_s { * due to the lack of regularity on spu packets) */ - int64_t (*got_spu_packet) (metronom_t *, int64_t pts); + int64_t (*got_spu_packet) (metronom_t *self, int64_t pts); /* * tell metronom about discontinuities. @@ -154,16 +151,16 @@ struct metronom_s { * just switch to the new disc_offset and resume synced operation. * */ - void (*handle_audio_discontinuity) (metronom_t *, int type, int64_t disc_off); - void (*handle_video_discontinuity) (metronom_t *, int type, int64_t disc_off); + void (*handle_audio_discontinuity) (metronom_t *self, int type, int64_t disc_off); + void (*handle_video_discontinuity) (metronom_t *self, int type, int64_t disc_off); /* * set/get options for metronom, constants see below */ - void (*set_option) (metronom_t *, int option, int64_t value); - int64_t (*get_option) (metronom_t *, int option); + void (*set_option) (metronom_t *self, int option, int64_t value); + int64_t (*get_option) (metronom_t *self, int option); - void (*exit) (metronom_t *); + void (*exit) (metronom_t *self); /* * pointer to current xine stream object. @@ -228,8 +225,8 @@ struct metronom_clock_s { /* * set/get options for clock, constants see below */ - void (*set_option) (metronom_clock_t *, int option, int64_t value); - int64_t (*get_option) (metronom_clock_t *, int option); + void (*set_option) (metronom_clock_t *self, int option, int64_t value); + int64_t (*get_option) (metronom_clock_t *self, int option); /* * system clock reference (SCR) functions @@ -239,31 +236,31 @@ struct metronom_clock_s { * start clock (no clock reset) * at given pts */ - void (*start_clock) (metronom_clock_t *, int64_t pts); + void (*start_clock) (metronom_clock_t *self, int64_t pts); /* * stop metronom clock */ - void (*stop_clock) (metronom_clock_t *); + void (*stop_clock) (metronom_clock_t *self); /* * resume clock from where it was stopped */ - void (*resume_clock) (metronom_clock_t *); + void (*resume_clock) (metronom_clock_t *self); /* * get current clock value in vpts */ - int64_t (*get_current_time) (metronom_clock_t *); + int64_t (*get_current_time) (metronom_clock_t *self); /* * adjust master clock to external timer (e.g. audio hardware) */ - void (*adjust_clock) (metronom_clock_t *, int64_t desired_pts); + void (*adjust_clock) (metronom_clock_t *self, int64_t desired_pts); /* @@ -271,15 +268,15 @@ struct metronom_clock_s { * for constants see xine_internal.h */ - int (*set_speed) (metronom_clock_t *, int speed); + int (*set_speed) (metronom_clock_t *self, int speed); /* * (un)register a System Clock Reference provider at the metronom */ - int (*register_scr) (metronom_clock_t *, scr_plugin_t *scr); - void (*unregister_scr) (metronom_clock_t *, scr_plugin_t *scr); + int (*register_scr) (metronom_clock_t *self, scr_plugin_t *scr); + void (*unregister_scr) (metronom_clock_t *self, scr_plugin_t *scr); - void (*exit) (metronom_clock_t *); + void (*exit) (metronom_clock_t *self); scr_plugin_t* scr_master; scr_plugin_t** scr_list; @@ -310,7 +307,7 @@ struct scr_plugin_s { int interface_version; - int (*get_priority) (scr_plugin_t *); + int (*get_priority) (scr_plugin_t *self); /* * set/get clock speed @@ -319,15 +316,15 @@ struct scr_plugin_s * returns actual speed */ - int (*set_speed) (scr_plugin_t *, int speed); + int (*set_speed) (scr_plugin_t *self, int speed); - void (*adjust) (scr_plugin_t *, int64_t vpts); + void (*adjust) (scr_plugin_t *self, int64_t vpts); - void (*start) (scr_plugin_t *, int64_t start_vpts); + void (*start) (scr_plugin_t *self, int64_t start_vpts); - int64_t (*get_current) (scr_plugin_t *); + int64_t (*get_current) (scr_plugin_t *self); - void (*exit) (scr_plugin_t *); + void (*exit) (scr_plugin_t *self); metronom_clock_t *clock; }; |