All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] a2play timing is still whacky
@ 2005-05-17  6:31 Mayank Batra
  2005-05-17  6:59 ` Brad Midgley
  0 siblings, 1 reply; 2+ messages in thread
From: Mayank Batra @ 2005-05-17  6:31 UTC (permalink / raw)
  To: BLUEZ DEVELOPERS LIST

Brad,

I tried the latest version of a2play with BlueSoleil.
The timing is still not upto the mark.
I mean, this time, the sound is breking, i.e I feel we
are putting a greater delay than what is needed.

len = sbc_encode(&sbc, buf2, size2);//do the encoding
	sleeptime = sbc.duration;
	sbc_info.blocks = sbc.blocks;
	sbc_info.subbands = sbc.subbands;

Here, why are we using the variable sleeptime if we
are not making use of it later on in the code?

// pause if the ring buffer is full
while((ring_out + 1) % FRAMEBUF == ring_in)
usleep(10);

Here, why did you choose usleep(10) only?

Mayank.
        

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] a2play timing is still whacky
  2005-05-17  6:31 [Bluez-devel] a2play timing is still whacky Mayank Batra
@ 2005-05-17  6:59 ` Brad Midgley
  0 siblings, 0 replies; 2+ messages in thread
From: Brad Midgley @ 2005-05-17  6:59 UTC (permalink / raw)
  To: bluez-devel

Mayank,

Audio is only sent to the headset in response to sig_alrm. setitimer 
determines the interval between sig_alrm events.

Unfortunately, the interval still needs tweaking... it's set to 87% of 
the interval computed by libsbc.

usleep(10) is arbitrary and doesn't really matter.

Brad

Mayank Batra wrote:
> Brad,
> 
> I tried the latest version of a2play with BlueSoleil.
> The timing is still not upto the mark.
> I mean, this time, the sound is breking, i.e I feel we
> are putting a greater delay than what is needed.
> 
> len = sbc_encode(&sbc, buf2, size2);//do the encoding
> 	sleeptime = sbc.duration;
> 	sbc_info.blocks = sbc.blocks;
> 	sbc_info.subbands = sbc.subbands;
> 
> Here, why are we using the variable sleeptime if we
> are not making use of it later on in the code?
> 
> // pause if the ring buffer is full
> while((ring_out + 1) % FRAMEBUF == ring_in)
> usleep(10);
> 
> Here, why did you choose usleep(10) only?
> 
> Mayank.
>         
> 
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-17  6:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-17  6:31 [Bluez-devel] a2play timing is still whacky Mayank Batra
2005-05-17  6:59 ` Brad Midgley

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.