diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-25 07:12:16 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-25 07:12:16 +0000 |
commit | f3265672dc2071d68740903a6b562e9d988f6343 (patch) | |
tree | 6977dfc982230238363ced4cc637299e836082e6 /src/xine-engine/metronom.h | |
parent | 1129dc86b5e2e39167f20a9db3cc13caedbb5df8 (diff) | |
download | xine-lib-f3265672dc2071d68740903a6b562e9d988f6343.tar.gz xine-lib-f3265672dc2071d68740903a6b562e9d988f6343.tar.bz2 |
fixed seeking (back to the old method), implementing true pause function, introducing trick playback (slow motion and fast forward)
CVS patchset: 482
CVS date: 2001/08/25 07:12:16
Diffstat (limited to 'src/xine-engine/metronom.h')
-rw-r--r-- | src/xine-engine/metronom.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/xine-engine/metronom.h b/src/xine-engine/metronom.h index ef432c9ea..368bed25e 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.9 2001/08/07 16:00:10 ehasenle Exp $ + * $Id: metronom.h,v 1.10 2001/08/25 07:12:16 guenter Exp $ * * metronom: general pts => virtual calculation/assoc * @@ -121,13 +121,12 @@ struct metronom_s { int32_t (*get_av_offset) (metronom_t *this); /* - * **************************************** - * master clock functions - * **************************************** + * system clock reference (SCR) functions */ /* * start metronom clock (no clock reset) + * at given pts */ void (*start_clock) (metronom_t *this, uint32_t pts); @@ -155,6 +154,14 @@ struct metronom_s { */ void (*adjust_clock) (metronom_t *this, uint32_t desired_pts); + + /* + * set clock speed + * for constants see xine_internal.h + */ + + int (*set_speed) (metronom_t *this, int speed); + /* * (un)register a System Clock Reference provider at the metronom */ @@ -207,13 +214,24 @@ struct metronom_s { metronom_t *metronom_init (int have_audio); +/* + * SCR plugins + */ + struct scr_plugin_s { int interface_version; int (*get_priority) (scr_plugin_t *this); - void (*set_speed) (scr_plugin_t *this, float pts_ps); + /* + * set/get clock speed + * + * for speed constants see xine_internal.h + * returns actual speed + */ + + int (*set_speed) (scr_plugin_t *this, int speed); void (*adjust) (scr_plugin_t *this, uint32_t vpts); |