From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Comments about the Logitech/HP stereo headphones
Date: Tue, 26 Apr 2005 15:28:52 +0200 [thread overview]
Message-ID: <1114522132.10706.277.camel@pegasus> (raw)
In-Reply-To: <20050426124632.43110.qmail@web8309.mail.in.yahoo.com>
Hi Mayank,
> > I haven't noticed that you also played with adding
> > usleep(). I only
> > tried a2play once on a Logitech headphone and it was
> > terrible. However
> > this can be the final solution and we need an exact
> > timing source for
> > proper A2DP support.
this must be read "_can't_ be the final". Silly typo :(
> But, this is not a very good approach. Also, it will
> depend on the kind of sink. for example some sinks
> have buffers. Also we do not know what the buffer size
> is.
>
> But this may just be the solution since we can always
> leave some buffer space of the sink empty, but we
> can't afford to overflow it, else the speed
> automatically increases about 5 times !
>
> And will the parameter to usleep be a constant ?
No. It depends on the CPU speed and the CPU load.
> Another point that i wanted to share is that before
> adding the sbc encoding in the a2play code i had to
> put usleep(10000).
> But once i included the sbc encoding, it came down to
> usleep(30).
> So, as Henryk said, sbc encoding should be there in
> the a2play code rather than as a separate application.
Maybe we should change the SBC encoding routines so that it times how
long it needed to encode the resulting SBC frame. Together with the
known time of the PCM data the SBC frame is encoded for, we can
calculate the actual time for the usleep() in a2play.
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
next prev parent reply other threads:[~2005-04-26 13:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-26 12:46 [Bluez-devel] Comments about the Logitech/HP stereo headphones Mayank Batra
2005-04-26 13:28 ` Marcel Holtmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-04-28 12:10 Mayank Batra
2005-04-29 9:51 ` Marcel Holtmann
2005-04-24 15:16 Mayank Batra
2005-04-24 15:35 ` Marcel Holtmann
2005-04-24 12:18 Marcel Holtmann
2005-04-24 13:47 ` Guylhem Aznar
2005-04-24 14:28 ` Brad Midgley
2005-04-24 15:23 ` Marcel Holtmann
2005-04-24 15:16 ` Marcel Holtmann
2005-04-24 17:11 ` Guylhem Aznar
2005-04-24 18:09 ` Marcel Holtmann
2005-04-24 20:28 ` Brad Midgley
2005-04-24 16:19 ` Henryk Plötz
2005-04-24 16:48 ` Guylhem Aznar
2005-04-24 18:15 ` Marcel Holtmann
2005-04-24 18:12 ` Marcel Holtmann
2005-04-24 14:04 ` Brad Midgley
2005-04-24 14:34 ` Brad Midgley
2005-04-24 15:30 ` Marcel Holtmann
2005-04-25 17:39 ` Brad Midgley
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=1114522132.10706.277.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 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.