diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-08-02 12:51:07 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-08-02 12:51:07 +0000 |
commit | 2e2b861d367f376a67c86b7381132d5e1097d999 (patch) | |
tree | 8c3e4b9b5194e969424b964a600bdb2217d31d97 /src/post/audio/stretch.c | |
parent | 9d4bd66d0f07ee930e6566a4053933de23fb6515 (diff) | |
download | xine-lib-2e2b861d367f376a67c86b7381132d5e1097d999.tar.gz xine-lib-2e2b861d367f376a67c86b7381132d5e1097d999.tar.bz2 |
no objections so far: committing the fine speed control patch
(in case of major trouble just revert the patch i sent to xine-devel)
CVS patchset: 6871
CVS date: 2004/08/02 12:51:07
Diffstat (limited to 'src/post/audio/stretch.c')
-rw-r--r-- | src/post/audio/stretch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index f21378cd2..6eb131a2b 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -19,7 +19,7 @@ * * Time stretch by a given factor, optionally preserving pitch * - * $Id: stretch.c,v 1.3 2004/07/27 17:59:58 mroi Exp $ + * $Id: stretch.c,v 1.4 2004/08/02 12:51:11 miguelfreitas Exp $ * */ @@ -93,7 +93,7 @@ static int stretchscr_set_speed (scr_plugin_t *scr, int speed) { stretchscr_set_pivot( this ); this->xine_speed = speed; - this->speed_factor = (double) speed * 90000.0 / 4.0 / + this->speed_factor = (double) speed * 90000.0 / XINE_FINE_SPEED_NORMAL / (*this->stretch_factor); pthread_mutex_unlock (&this->lock); @@ -125,7 +125,7 @@ static void stretchscr_start (scr_plugin_t *scr, int64_t start_vpts) { pthread_mutex_unlock (&this->lock); - stretchscr_set_speed (&this->scr, XINE_SPEED_NORMAL); + stretchscr_set_speed (&this->scr, XINE_FINE_SPEED_NORMAL); } static int64_t stretchscr_get_current (scr_plugin_t *scr) { @@ -160,9 +160,9 @@ static stretchscr_t* stretchscr_init (double *stretch_factor) { this = (stretchscr_t *) xine_xmalloc(sizeof(stretchscr_t)); - this->scr.interface_version = 2; + this->scr.interface_version = 3; this->scr.get_priority = stretchscr_get_priority; - this->scr.set_speed = stretchscr_set_speed; + this->scr.set_fine_speed = stretchscr_set_speed; this->scr.adjust = stretchscr_adjust; this->scr.start = stretchscr_start; this->scr.get_current = stretchscr_get_current; |