public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2dp timing
Date: Fri, 25 Mar 2005 14:14:36 +0100	[thread overview]
Message-ID: <1111756476.9195.105.camel@pegasus> (raw)
In-Reply-To: <42439ADA.5000006@xmission.com>

Hi Brad,

> We've had problems with a2dp timing that I've been ignoring.
> 
> For one, a2play crams frames into the headset just as fast as it can. 
> Sometimes this is too fast. So we need to clock it so things are 
> staggered properly. Does the SBC encoder give us a clue about timing 
> between frames?

it would be really great to get a FTS or CATC trace from the HP
headphone and the iPAQ for example.

In the case of an ALSA plugin, we may simple use the timing of the ALSA
system itself. However it would be great if the SBC encoder would also
calculate the time of the PCM fragment.

> Second, if the headset wanders out of range, the player stops and starts 
> up where it left off when the headset is back. If we're pacing things 
> properly, we need to drop frames instead when this happens. I'm thinking 
> if it results in a legal SBC stream that I'll drop entire SBC frames in 
> the main loop with something like:
> 
> 	frame_len = read_header(fd, &sbc_info);
> 	bytes_read = read(fd, killbuffer, frame_len);

And then you need to sleep some time before reading/dropping the next
SBC frame.

> Are there other timing issues I need to think about? Does it get so 
> messy that I need to watch jitter? I can only vaguely remember this 
> stuff from my networking classes...

I don't think that this will be needed, but we will see.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2005-03-25 13:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-25  5:00 [Bluez-devel] a2dp timing Brad Midgley
2005-03-25 13:14 ` Marcel Holtmann [this message]
2005-03-25 14:22   ` Guylhem Aznar
2005-03-25 14:26     ` Marcel Holtmann
2005-03-25 17:23       ` Guylhem Aznar
2005-03-25 17:28         ` Marcel Holtmann
2005-03-25 18:14         ` btlog anyone? " Brad Midgley
2005-03-25 16:44   ` Brad Midgley
2005-03-25 17:31     ` Marcel Holtmann
2005-04-04 17:14       ` Brad Midgley
2005-04-05 15:12         ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2005-04-14  8:04 Mayank Batra
2005-04-14  8:17 ` Brad Midgley
2005-04-15  9:41 Mayank Batra
2005-04-16 20:32 ` Henryk Plötz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1111756476.9195.105.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox