Mercurial > libavformat.hg
changeset 108:c1c8a0777bdb libavformat
Add latency check, the Media Kit shoul repport it, but this seems broken.
author | mmu_man |
---|---|
date | Fri, 18 Apr 2003 16:22:12 +0000 |
parents | d73becdbbda5 |
children | c82a6062485e |
files | beosaudio.cpp |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/beosaudio.cpp Fri Apr 18 14:35:15 2003 +0000 +++ b/beosaudio.cpp Fri Apr 18 16:22:12 2003 +0000 @@ -38,6 +38,9 @@ /* enable performance checks */ //#define PERF_CHECK +/* enable Media Kit latency checks */ +//#define LATENCY_CHECK + #define AUDIO_BLOCK_SIZE 4096 //#define AUDIO_BLOCK_SIZE 2048 #define AUDIO_BLOCK_COUNT 8 @@ -300,6 +303,10 @@ { AudioData *s = (AudioData *)s1->priv_data; int len, ret; +#ifdef LATENCY_CHECK +bigtime_t lat1, lat2; +lat1 = s->player->Latency(); +#endif #ifdef PERF_CHECK bigtime_t t = s->starve_time; s->starve_time = 0; @@ -322,6 +329,10 @@ buf += len; size -= len; } +#ifdef LATENCY_CHECK +lat2 = s->player->Latency(); +printf("#### BSoundPlayer::Latency(): before= %lld, after= %lld\n", lat1, lat2); +#endif return 0; }