diff options
author | LACARRIERE Jerome <lacarriere.j@gmail.com> | 2012-03-28 14:52:12 +0300 |
---|---|---|
committer | LACARRIERE Jerome <lacarriere.j@gmail.com> | 2012-03-28 14:52:12 +0300 |
commit | 0bd49a14320a205abd7300abbd6003b4cf7276d8 (patch) | |
tree | 83932690ae61d0821e5842c4b2ab9961e078f9d4 /src | |
parent | 28ea1ef6bbfa5d69219144dfc6ddc522e4b2aa6f (diff) | |
download | xine-lib-0bd49a14320a205abd7300abbd6003b4cf7276d8.tar.gz xine-lib-0bd49a14320a205abd7300abbd6003b4cf7276d8.tar.bz2 |
add access to audio engine gap
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/audio_out.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 4b2398bef..1a2e8aa5c 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -280,6 +280,8 @@ typedef struct { sXYData eq_data_history[EQ_BANDS][EQ_CHANNELS]; + int last_gap; + } aos_t; struct audio_fifo_s { @@ -1166,6 +1168,7 @@ static void *ao_loop (void *this_gen) { * calculate gap: */ gap = in_buf->vpts - hw_vpts; + this->last_gap = gap; lprintf ("hw_vpts : %" PRId64 " buffer_vpts : %" PRId64 " gap : %" PRId64 "\n", hw_vpts, in_buf->vpts, gap); @@ -1828,6 +1831,10 @@ static int ao_get_property (xine_audio_port_t *this_gen, int property) { ret = this->current_speed; break; + case AO_PROP_DRIVER_DELAY: + ret = this->last_gap; + break; + default: inc_num_driver_actions(this); pthread_mutex_lock( &this->driver_lock ); |