From: Brad Midgley <bmidgley@xmission.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] yes, a2dp timing is whacked
Date: Mon, 09 May 2005 15:27:25 -0600 [thread overview]
Message-ID: <427FD5BD.7010605@xmission.com> (raw)
In-Reply-To: <427F0F94.3060806@xmission.com>
guys,
I wrote up basic itimer/ring buffer support in a2play. It still needed
some tuning (eg it uses the frame timespan * .87 to set the itimer)
I really just think the HP headset is poorly engineered. Either you are
going to send frames too slowly and get a noisy glitch when it hits a
dry patch or you are going to send them too quickly and have the
occasional pop when it drops a frame. There's no way around it.
I did experiment with ring buffer size and SA_NODEFER option on the
signal handler. I was trying to see if one write to the headset could be
interrupted by the alarm so that the next frame could get on its way,
like if you had a poor connection and wanted to keep the timing more
accurate. I finally decided this wasn't the way... a long ring buffer
and nodefer enabled meant really fast-playing catch-up periods after the
connection was good again.
Brad
Brad Midgley wrote:
> I think my hack introduced timing issues of its own... tomorrow I'll fix
> it up with code that uses a ring buffer and bleeds from the ring in the
> sighandler.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2005-05-09 21:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 19:58 [Bluez-devel] yes, a2dp timing is whacked Brad Midgley
2005-05-07 1:13 ` Henryk Plötz
2005-05-07 1:26 ` Marcel Holtmann
2005-05-07 19:27 ` Marcel Holtmann
2005-05-07 20:20 ` Henryk Plötz
2005-05-07 20:45 ` Marcel Holtmann
2005-05-09 6:34 ` Brad Midgley
2005-05-09 7:21 ` Brad Midgley
2005-05-09 21:27 ` Brad Midgley [this message]
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=427FD5BD.7010605@xmission.com \
--to=bmidgley@xmission.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.