All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] a2play code not according to the specifications
@ 2005-04-22  5:02 Mayank Batra
  2005-04-22  5:35 ` Brad Midgley
  0 siblings, 1 reply; 3+ messages in thread
From: Mayank Batra @ 2005-04-22  5:02 UTC (permalink / raw)
  To: BLUEZ DEVELOPERS LIST

Hi Brad,

Your a2play code on the CVS is not 'exactly' according
to the specifications.

The specifications demand that the source encodes the
media payload into an appropriate format (SBC in this
case) and then stream the packet to the sink. The sink
then decodes the packet and plays the stream.

But in your code, you are sending an already encoded
file instead of streaming a simple PCM file by
encoding the file into SBC frames in a real time
manner.

Infact there is no use of storing SBC files at the
source. The source should read the PCM file (for
example a .wav or .snd file), encode the data into SBC
and then form the A2DP packet. 

And who the hell has .sbc files on his system ??

I improved your code to fulfill the above
requirements. My code does exactly what a2play code
does. The only difference is that my code reads a pcm
format file(.snd file which is Sun/NeXT format), it
converts the file to SBC packets during the streaming
process.

So the source need not keep .sbc file on his system. 

A .snd file can be listened to using the Linux
application called 'play'.

I am using the SBC codec library from the CVS.

I have tested my code with the help of Dongles with
various stacks:

1)   BlueZ stacks on both source and sink.
2)   BlueZ stack on source and IVT Corporation's
BlueSoleil on the sink side (Windows)

My code is working fine in all cases.

Please tell me if you would like to update the CVS
with my code.

Also, I am ready to put up the A2DP sink code on the
CVS.

Please tell if you would like to put it on the CVS as
well.

And please, I intended no offence to anyone. I was
just waiting to get over with certain formalities.

Thanks and Regards,

Mayank

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


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [Bluez-devel] a2play code not according to the specifications
@ 2005-04-24 12:13 Mayank Batra
  0 siblings, 0 replies; 3+ messages in thread
From: Mayank Batra @ 2005-04-24 12:13 UTC (permalink / raw)
  To: bluez-devel

Brad,

> it was written as a proof of concept. it actually
> doesn't work well at 
> all if you give it a raw sbc file because it's not
> paced correctly. it 
> works most consistently if it's used like
> 
> mpg123 --au - file.mp3 | sbc/sbcenc - | ./a2play
> bdaddr

The current code has good timing just because of the
fact that the delay due to encoding during streaming
is good for us.
 
> we count on mpg123 to enforce timing correctly, but
> even then, a2play 
> can block the pipeline and mess up the timing, for
> example if the link 
> is lossy.

We no more need mpg123 if we have ecasound.
Use:
ecasound -i file.mp3 -o file.snd

Now use ./a2play <bdaddr> <.snd filename>

And enjoy the music on ur A2DP headset !


> to maintain license compatibility, we want
> (especially avdtp) code 
> contributions to be GPL so they could go into the
> kernel if appropriate. 
> is that license ok with you?

Fine

> 
> > Also, I am ready to put up the A2DP sink code on
> the
> > CVS.
> > 
> > Please tell if you would like to put it on the CVS
> as
> > well.
> 
> very good! yes.

Just wait for some more time.
I am now correcting the things that u mentioned in the
earlier mail.


Mayank

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


-------------------------------------------------------
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

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

end of thread, other threads:[~2005-04-24 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22  5:02 [Bluez-devel] a2play code not according to the specifications Mayank Batra
2005-04-22  5:35 ` Brad Midgley
  -- strict thread matches above, loose matches on Subject: below --
2005-04-24 12:13 Mayank Batra

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.