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WQgdG8gZG8gbW9yZT8gTmVlZCB0 byBzdXBwb3J0IHdlYiBzZXJ2aWNlcywgc2VjdXJpdHk/CkdldCBzdHVmZiBkb25lIHF1aWNrbHkg d2l0aCBwcmUtaW50ZWdyYXRlZCB0ZWNobm9sb2d5IHRvIG1ha2UgeW91ciBqb2IgZWFzaWVyCkRv d25sb2FkIElCTSBXZWJTcGhlcmUgQXBwbGljYXRpb24gU2VydmVyIHYuMS4wLjEgYmFzZWQgb24g QXBhY2hlIEdlcm9uaW1vCmh0dHA6Ly9zZWwuYXMtdXMuZmFsa2FnLm5ldC9zZWw/Y21kPWxuayZr aWQ9MTIwNzA5JmJpZD0yNjMwNTcmZGF0PTEyMTY0MgpfX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fXwpCbHVlei1kZXZlbCBtYWlsaW5nIGxpc3QKQmx1ZXotZGV2 ZWxAbGlzdHMuc291cmNlZm9yZ2UubmV0Cmh0dHBzOi8vbGlzdHMuc291cmNlZm9yZ2UubmV0L2xp c3RzL2xpc3RpbmZvL2JsdWV6LWRldmVsCg==
Hi Marcel !
Quoted 8 lines · Marcel Hilzinger
Hi,
=I made some tests with bluetooth stereo headsets and a2dpd. =
I must confess, I'm impressed by the easy use of a2dpd! Thanks, it's just =
great. =
Yes, the usage is very simple, indeed. Once I figured out how to use passkey-agent, the connection worked immediately ;).
Quoted 3 lines
=
But I'm not impressed by the audio quality. Its quite noisy and far away =
from =
Quoted 3 lines
the quality of normal wireless headphones. Headset was a Jabra BT620s. I =
tried with different dongles, but the dongle seems to make no difference.
My problem with the audio quality and a2dpd is, that the quality is set to telephone quality only (8kHz, Mono) though my headset can do up to 44,1kHz Stereo (SONY VGP-BRM1D) and a2dpd even displays 44,1kHz. When using a2play I can listen in 44,1kHz quality, so this is an issue with a2dpd for me (but a2play plays the MP3s with higher speed, so they sound high-pitched). Also the sound is chopped very often with a2dpd, so this is = no use for me
at the moment :(.
Quoted 5 lines
=
Questions: =
is this a problem of the technology?
I don't think so, this is rather due to the fact that btsco is still in Alpha status of development.
Quoted 1 line
is it a problem of bluez?
No, I'd rather blame btsco. (I tried different kernel versions, 2.6.17.9 and 2.6.19-rc5 and the most recent bluez-utils version).
Quoted 1 line
did I something wrong?
Have you tried a2play instead ? Do this:
- hcitool scan
- passkey-agent <code> <address>
- btsco -r -v <address>
- mpg123 --au - file.mp3 | a2play <address>
Quoted 3 lines
=
did anybody compare the quality on Windows? I tried to compare with Mac. =
But =
Quoted 1 line
as Mac OS X cannot do a2dpd, it's even worse on Mac.
I was not able to use my headset in Windows, Windows doesn't give me any options for choosing the headset as an audio output-device, though I can to the headset successfully. On 2 Macintosh Mini (Intel and PPC) with OS 10= .4
I was able to connect to the headset without any problems, and I could choose my headset for all the sound-output so I was able to listen to iTunes via the headset. The only drawback on the Mac is, that the quality is limited to 8000Hz, 16 Bit mono (and the Audio Utility won't let me choose any better quality, though the headset supports this).
Quoted 7 lines
=
Regards,
-- ==DCdv=F6zlettel -- Mit freundlichen Gr=FCssen,
Marcel Hilzinger
Greetings,
Adrian
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
I'm also using a BT620s and I find the sound quality acceptable using the a2dp plugin. I also tested with a2dpd and there wasn't any difference in sound quality that I could perceive. However, with a2dp, which I'm using with amarok I can actually play mono/stereo sources with different sample rates without getting the pitch problem (Frederic has submitted patches for a2dpd recently but I haven't tested them yet). I'm using a 100 mW dongle and there are no drop-outs within my (not too big) appartment. It seems to be fairly stable, I have used the headset for hours without a glitch.
What I did notice is that the volume could be higher and there is the occasional faint clicking which might be due to clipping. As far as I understood these are known issues inside the sbc encoding library. Of course, headsets like the BT620s can be connected via SCO as well as a2dp. Use SCO to hook it up to your phone or to egika, but definitly use a2dp for the connection to amarok or other music/podcast players.
Regards,
Reiner
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Donnerstag, 9. November 2006 11:07 schrieb Reiner Klenk:
Quoted 4 lines
Hi,
I'm also using a BT620s and I find the sound quality acceptable using the a2dp plugin. I also tested with a2dpd and there wasn't any difference in sound quality that I could perceive. =
Then we must have different ears :-) or different versions. I'm using Suse =
Linux 10.1 with kernel 2.6.16.21, alsa-version is 1.0.13
a2dpd produces some noise in the background. If there is silence, you can h= ear =
it. With a2play there is no noise. I will checkout cvs again and have a loo= k.
Quoted 5 lines
However, with a2dp, =
which I'm using with amarok I can actually play mono/stereo sources with different sample rates without getting the pitch problem (Frederic has submitted patches for a2dpd recently but I haven't tested them yet).
How do you change the sample rate?
Quoted 17 lines
I'm =
using a 100 mW dongle and there are no drop-outs within my (not too big) appartment. It seems to be fairly stable, I have used the headset for hours without a glitch.
What I did notice is that the volume could be higher and there is the occasional faint clicking which might be due to clipping. As far as I understood these are known issues inside the sbc encoding library. Of course, headsets like the BT620s can be connected via SCO as well as a2dp. Use SCO to hook it up to your phone or to egika, but definitly use a2dp for the connection to amarok or other music/podcast players.Regards,
Reiner
Quoted 6 lines
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
Quoted 4 lines
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-- =
Mit freundlichen Gr=FC=DFen,
Marcel Hilzinger
Linux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
Quoted 2 lines
a2dpd produces some noise in the background. If there is silence, you can hear it. With a2play there is no noise. I will checkout cvs again and have a look.
I believe this comes from a difference in the sbc encoder (floating vs fixed).
If you have the latest patch, I would first suggest you increase sbcbitpool=64 in .a2dprc.
If it doesn't work, then the dirty way is to swap all files from sbc/lib with the corresponding in btsco/sbc and then rebuild sbc library and reinstall of course.
BTW, do you have choppy sound like Adrian? Which player is it?
BR, Frederic
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
QW0gRnJlaXRhZywgMTAuIE5vdmVtYmVyIDIwMDYgMDk6NDEgc2NocmllYiBGcmVkZXJpYyBEYWxs ZWF1Ogo+IEhpLAo+Cj4gPiBhMmRwZCBwcm9kdWNlcyBzb21lIG5vaXNlIGluIHRoZSBiYWNrZ3Jv dW5kLiBJZiB0aGVyZSBpcyBzaWxlbmNlLCB5b3UgY2FuCj4gPiBoZWFyIGl0LiBXaXRoIGEycGxh eSB0aGVyZSBpcyBubyBub2lzZS4gSSB3aWxsIGNoZWNrb3V0IGN2cyBhZ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m9yZ2UubmV0L2xpc3RzL2xpc3Rp bmZvL2JsdWV6LWRldmVsCg==
Hi Marcel,
Quoted 7 lines
I also tried to call mpg123 --au -file.mp3 | a2play 00:0D:44:58:11:CA
without calling btsco before, and it's works, too. But here i have the effects
other user described with speedup and very noisy sound. So maybe this is a
pairing problem? See logs at the end of my email.
Why don't you try running a2play with -p option? Something like:
mpg123 --au - file.mp3 | a2play -p 00:0D:44:58:11:CA
This surely will correct the speedup.
Best Regards,
Mayank
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Freitag, 10. November 2006 10:59 schrieb Mayank BATRA:
Quoted 10 lines
Hi Marcel,
Quoted 7 lines
I also tried to call mpg123 --au -file.mp3 | a2play 00:0D:44:58:11:CA
without calling btsco before, and it's works, too. But here i have the effects
other user described with speedup and very noisy sound. So maybe this is a
pairing problem? See logs at the end of my email.
Quoted 5 lines
Why don't you try running a2play with -p option? Something like:
mpg123 --au - file.mp3 | a2play -p 00:0D:44:58:11:CAThis surely will correct the speedup.
No, it doesn't. But this is not the way to go anyway. a2dpd is the future, =
yeah ;-) =
I also tried different sampling rates. But the result is alwas the same noi= se, =
only played at a different octave :-)
-- =
Mit freundlichen Gr=FC=DFen,
Marcel Hilzinger
Linux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
TWFyY2VsLCBJIGJlbGlldmUgdGhlcmUgaXMgc3RpbGwgc29tZSBjb25mdXNpb24gb24gU0NPIHZz LiBhMmRwLiBUaGVzZQphcmUgZGlmZmVyZW50IHByb2ZpbGVzIGZvciBkaWZmZXJlbnQgYXBwbGlj YXRpb25zLiBTQ08gaXMgZm9yIHZvaWNlCmNvbW11bmljYXRpb24sIGEyZHAgaXMgZm9yIGhpZmkg c3RlcmVvLiBUaGUgamFicmEgZG9lcyBib3RoIHByb2ZpbGVzLApldmVuIHNpbXVsdGFuZW91c2x5 LiBUaGUgbG9naXRlY2ggd2l0aCB0aGUgZG9uZ2xlIF9vbmx5XyBkb2VzIGEyZHAuIFdpdGgKYnRz Y28gKGFuZCB0aGUgc25kLWJ0LXNjbyBrZXJuZWwgbW9kdWxlKSB5b3UgYXJlIGVzdGFibGlzaGlu ZyBhIHR3by13YXksCmxvdyBxdWFsaXR5IGJ1dCBhbHNvIGxvdyBsYXRlbmN5IFNDTyBjb25uZWN0 aW9uLiBUaGlzIGRvZXNudCd0IHdvcmsgd2l0aAp0aGUgTG9naXRlY2ggYmVjYXVzZSB0aGlzIGhl YWRzZXQgZG9lcyBub3Qgc3VwcG9ydCB0aGUgU0NPIHByb2ZpbGUuIEZvcgp0aGUgc2FtZSByZWFz b24geW91IGNhbm5vdCBwYWlyIGl0IHdpdGggeW91ciBjZWxsIHBob25lIG9yIHdpdGggdGhlIE1h YwoodGhleSBhcmUgdXNpbmcgU0NPIHdoaWNoIHRoZSBsb2dpdGVjaCBkb2VzIG5vdCBzdXBwb3J0 KS4gT24gdGhlIG90aGVyCmhhbmQsIHRoZSBzbWFsbCBibHVldG9vdGggaGVhZHNldHMgd2hpY2gg YXJlIHNvbGQgZm9yIG1vYmlsZSBwaG9uZXMKbm9ybWFsbHkgc3VwcG9ydCBfb25seV8gU0NPIGJ1 dCBub3QgYTJkcC4KVGhlIGphY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0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t ClVzaW5nIFRvbWNhdCBidXQgbmVlZCB0byBkbyBtb3JlPyBOZWVkIHRvIHN1cHBvcnQgd2ViIHNl cnZpY2VzLCBzZWN1cml0eT8KR2V0IHN0dWZmIGRvbmUgcXVpY2tseSB3aXRoIHByZS1pbnRlZ3Jh dGVkIHRlY2hub2xvZ3kgdG8gbWFrZSB5b3VyIGpvYiBlYXNpZXIKRG93bmxvYWQgSUJNIFdlYlNw aGVyZSBBcHBsaWNhdGlvbiBTZXJ2ZXIgdi4xLjAuMSBiYXNlZCBvbiBBcGFjaGUgR2Vyb25pbW8K aHR0cDovL3NlbC5hcy11cy5mYWxrYWcubmV0L3NlbD9jbWQ9bG5rJmtpZD0xMjA3MDkmYmlkPTI2 MzA1NyZkYXQ9MTIxNjQyCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fCkJsdWV6LWRldmVsIG1haWxpbmcgbGlzdApCbHVlei1kZXZlbEBsaXN0cy5zb3VyY2Vm b3JnZS5uZXQKaHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vYmx1 ZXotZGV2ZWwK
Marcel
Quoted 2 lines
Btw. is there a possibitily to use the micro under Linux or is a2dpd a one-way-connection?
All the combo sco/a2dp headphones I've seen only use the microphone for plain sco--they disable the microphone when a2dp audio is streaming.
The a2dp spec leaves it open for implementors to work in the mic by doing both a2dp source and sink, but the latency in practice for a2dp is around 250ms. It would be pretty awful for voip to add that in both directions.
Brad
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi,
Quoted 2 lines
Quoted 2 lines
BTW: Has your head band snapped on the logitech already?
I've an HP set than looks exactly like the Logitech one, but in black. The band of plastic between the two speakers is broken. Is it what you mean? BR, Frederic
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
T24gTW9uLCAyMDA2LTExLTEzIGF0IDEwOjM5ICswMTAwLCBGcsOpZMOpcmljIERBTExFQVUgd3Jv dGU6Cj4gSGksCj4gPj4gQlRXOiBIYXMgeW91ciBoZWFkIGJhbmQgc25hcHBlZCBvbiB0aGUgbG9n aXRlY2ggYWxyZWFkeT8KPiA+PiAgICAgCj4gSSd2ZSBhbiBIUCBzZXQgdGhhbiBsb29rcyBleGFj dGx5IGxpa2UgdGhlIExvZ2l0ZWNoIG9uZSwgYnV0IGluIGJsYWNrLiAKPiBUaGUgYmFuZCBvZiBw bGFzdGljIGJldHdlZW4gdGhlIHR3byBzcGVha2VycyBpcyBicm9rZW4uIElzIGl0IHdoYXQgeW91 IG1lYW4/Clllcy4gSXQgYXBwZWFycyB0byBiZSBhIF92ZXJ5XyBjb21tb24gcHJvYmxlbSB3aXRo IHRoZSBMb2dpdGVjaApoZWFkcGhvbmVzLiAKClJlZ2FyZHMsClJlaW5lcgoKLS0gCmRlYmIxMDQ2 IChnbWFpbC5jb20sIGd0YWxrLCBqYWJiZXIub3JnLCBla2lnYS5uZXQsIGxhc3QuZm0sIHNreXBl KQoKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0KVXNpbmcgVG9tY2F0IGJ1dCBuZWVkIHRvIGRvIG1vcmU/IE5l ZWQgdG8gc3VwcG9ydCB3ZWIgc2VydmljZXMsIHNlY3VyaXR5PwpHZXQgc3R1ZmYgZG9uZSBxdWlj a2x5IHdpdGggcHJlLWludGVncmF0ZWQgdGVjaG5vbG9neSB0byBtYWtlIHlvdXIgam9iIGVhc2ll cgpEb3dubG9hZCBJQk0gV2ViU3BoZXJlIEFwcGxpY2F0aW9uIFNlcnZlciB2LjEuMC4xIGJhc2Vk IG9uIEFwYWNoZSBHZXJvbmltbwpodHRwOi8vc2VsLmFzLXVzLmZhbGthZy5uZXQvc2VsP2NtZD1s bmsma2lkPTEyMDcwOSZiaWQ9MjYzMDU3JmRhdD0xMjE2NDIKX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KQmx1ZXotZGV2ZWwgbWFpbGluZyBsaXN0CkJsdWV6 LWRldmVsQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5l dC9saXN0cy9saXN0aW5mby9ibHVlei1kZXZlbAo=
Quoted 5 lines · Marcel Hilzinger
Thanks a lot for these explanations. I knew, that sco and a2dp are different profiles, but I didn not know, that the kernel module handles "only" sco, because the command to play is called a2play...
??
snd-bt-sco and running btsco => SCO (bi-directional)
a2play, a2dp alsa plugin, a2dpd => three different possibilities for a2dp (one-way)
Quoted 3 lines
Btw. is there a possibitily to use the micro under Linux or is a2dpd a one-way-connection?
It can be used in SCO connections, for example with ekiga.
Quoted 12 lines
Quoted 10 lines
To use "old-style" a2dp with amarok:
.asoundrc like this:pcm.headphone { type a2dp bdaddr "00:13:17:71:58:F6" }Note the a2dp in the second line (not a2dpd). Replace the address with the one of your headset. Do _not_ run the a2dpd daemon.
But load the kernel module?
Can be loaded, but is not required for a2dp.
Signature · 12 lines
debb1046 (gmail.com, gtalk, jabber.org, ekiga.net, last.fm, skype) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Freitag, 10. November 2006 09:41 schrieb Frederic Dalleau:
Quoted 3 lines
Hi,
Quoted 1 line
a2dpd produces some noise in the background. If there is silence, you c=
an
Quoted 6 lines
Quoted 2 lines
hear it. With a2play there is no noise. I will checkout cvs again and have a look.
I believe this comes from a difference in the sbc encoder (floating vs fixed). If you have the latest patch, I would first suggest you increase sbcbitpool=3D64 in .a2dprc. If it doesn't work, then the dirty way is to =
swap
Quoted 1 line
all files from sbc/lib with the corresponding in btsco/sbc and then rebui=
ld
Quoted 1 line
sbc library and reinstall of course.
I forgot to mention that I use xmms and amarok for the tests.
Important: the noise seems to depend on the soundfile. With some files (mos= tly =
crappy MP3) the noise difference between bluetooth and conventional wireles= s =
is quite big. With other files (flac and high quality OGG), there is almost =
no noise difference.
Maybe that's all irrelevant, but theese are my observations.
-- =
=DCdv=F6zlettel -- Mit freundlichen Gr=FCssen,
Marcel Hilzinger
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Freitag, 10. November 2006 09:41 schrieb Frederic Dalleau:
Quoted 3 lines
Hi,
Quoted 1 line
a2dpd produces some noise in the background. If there is silence, you c=
an
Quoted 2 lines
Quoted 2 lines
hear it. With a2play there is no noise. I will checkout cvs again and have a look.
One more (maybe last :-) feedback
With amarok and a2dpd I can only use the Jabra headset. The Logitech one su= cks =
(plays the songs at least twice as fast as wanted).
Mit freundlichen Gr=FC=DFen,
Marcel Hilzinger
Linux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Freitag, 10. November 2006 11:17 schrieb Marcel Hilzinger:
Quoted 8 lines
Am Freitag, 10. November 2006 09:41 schrieb Frederic Dalleau:
Quoted 5 lines
Hi,
Quoted 3 lines
a2dpd produces some noise in the background. If there is silence, you can hear it. With a2play there is no noise. I will checkout cvs again and have a look.
One more (maybe last :-) feedback
Never say never again...
I'm now testing the 3th day, whole day with bt phones on my head. A new =
problem, which appears at least with amarok, maybe also with xmms: The spee= d =
of the played sound is not constant. It's like augmenting the speed on a =
oldstyle turntable from 33 1/2 to 35, back to 31 and back to 33 1/2 again. =
First I thought it's due to heavy CPU load, but it seems to appear randomly= . =
I decreased the sbcbitpool=3D value from 64 to 32 and it's seems to be bett= er, =
but perhaps it's only because I restartet a2dpd. =
It seems to be a caching problem.
In my first tests I had the same, when I went far away from the dongle, so =
playback stopped and then came back. Sound was played very quickly, and the= n =
normal again. But I then had no up-and-down-effects like today.
-- =
Mit freundlichen Gr=FC=DFen,
Marcel Hilzinger
Linux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
[Bluez-devel] python a2dp
Hi,
this is a partial realization of AVDTP, A2DP and AVRCP profiles in python with simple example of a2dp-avrcp server. it is probably far from a2dp alsa-plugin theme since it is not written in C, but it might be useful for prototype development. Anyway, have a look.
All the feedback is welcome.
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
#! /usr/bin/env python
"""
Partial realization of AVDTP, A2DP and AVRCP profiles and simple A2DP-AVRCP server
* Copyright (C) 2006 Sergei Krivov <[email protected]> *
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
"""
install libsbc; check for /usr/lib/libsbc.so. http://sbc.sf.net
put this in your .asoundrc file
pcm.a2dpipe {
type plug
slave {
pcm "tee:default,'/tmp/a2dpipe', raw"
}
}select alsa output pcm device a2dpipe
make pipe by: mkfifo /tmp/a2dpipe
start by python avdtp.py
stop by killing the process
A2DP server can work with many ACP given in the beginning. dynamical management of ACP is restricted to a single ACP to initiate connection with the server press PLAY button on headphones server starts as soon as some sound appeared in the pipe. server uses alsa timing, so some dropouts can be experienced if timing in alsa and headphones is different.
"""
import ctypes
from ctypes import Structure,c_uint8,c_uint16,c_ulong,c_uint32,c_void_p import bluetooth
import struct
import time
import sys
import array
import os
import threading
#//Signal ids
AVDTP_DISCOVER=1
AVDTP_GET_CAPABILITIES=2
AVDTP_SET_CONFIGURATION=3
AVDTP_GET_CONFIGURATION=4
AVDTP_RECONFIGURE=5AVDTP_OPEN =6AVDTP_START =7AVDTP_CLOSE =8AVDTP_SUSPEND =9AVDTP_ABORT =10AVDTP_SECURITY_CONTROL =11
MEDIA_TRANSPORT_CATEGORY =1MEDIA_CODEC =7
SBC_MEDIA_CODEC_TYPE =0AUDIO_MEDIA_TYPE =0
#//Packet typesPACKET_TYPE_SINGLE =0PACKET_TYPE_START =1PACKET_TYPE_CONTINUE =2PACKET_TYPE_END =3
#//Message TypesMESSAGE_TYPE_COMMAND =0MESSAGE_TYPE_ACCEPT =2MESSAGE_TYPE_REJECT =3
MEDIA_PACKET_HEADER_LENGTH =14
MAX_ADDITIONAL_CODEC=4
deb=1
tran=0
class message_header_single(Structure):
_pack_=1
_fields_=[("message_type",c_uint8,2),("packet_type",c_uint8,2)\
,("transaction_label",c_uint8,4),("signal_id",c_uint8,6),("rfa0",c_uint8,2)]
class message_header_start(Structure):
_pack_=1
_fields_=[("message_type",c_uint8,2),("packet_type",c_uint8,2),("nsop",c_uint8,8)\
,("transaction_label",c_uint8,4),("signal_id",c_uint8,6),("rfa0",c_uint8,2)]
class message_header_continue(Structure):
_pack_=1
_fields_=[("message_type",c_uint8,2),("packet_type",c_uint8,2)\
,("transaction_label",c_uint8,4)]class message_single(Structure):
_pack_=1 _fields_=[("header",message_header_single),("rfa0",c_uint8,2),("acp_seid",c_uint8,6)]
class sbc_codec_elements(Structure):
_pack_=1
_fields_=[("channel_mode",c_uint8,4),("frequency",c_uint8,4)\
,("allocation_method",c_uint8,2),("subbands",c_uint8,2)\
,("block_length",c_uint8,4),("min_bitpool",c_uint8,8),("max_bitpool",c_uint8,8)]
class acp_seid_info(Structure):
_pack_=1
_fields_=[("rfa0",c_uint8,1),("inuse",c_uint8,1),("acp_seid",c_uint8,6)\
,("rfa1",c_uint8,3),("tsep",c_uint8,1),("media_type",c_uint8,4)]class sepd_resp(Structure):
_pack_=1
_fields_=[("header",message_header_single)]
for i in range(1+MAX_ADDITIONAL_CODEC):_fields_.append(("n%i" %(i),acp_seid_info))
class sepd_reject(Structure):
_pack_=1 _fields_=[("header",message_header_single),("error",c_uint8)]
class getcap_resp(Structure):
_pack_=1
_fields_=[("header",message_header_single)]
for s in ("serv_cat","serv_cap_len","cap_type","length","media_type"\
,"media_codec_type"): _fields_.append((s,c_uint8,8))
_fields_.append(("sbc_elements",sbc_codec_elements))
class set_sbc_req(Structure):
_pack_=1
_fields_=[("header",message_header_single),("rfa0",c_uint8,2)\
,("acp_seid",c_uint8,6),("rfa1",c_uint8,2),("int_seid",c_uint8,6)]
for s in ("serv_cap","serv_cap_len","cap_type","length","media_type"\
,"media_codec_type"): _fields_.append((s,c_uint8,8)) _fields_.append(("sbc_elements",sbc_codec_elements))
class set_sbc_resp(Structure):
_pack_=1 _fields_=[("header",message_header_single),("serv_cap",c_uint8,8),("acp_seid",c_uint8,8)]
class open_strm_resp(Structure):
_pack_=1
_fields_=[("header",message_header_single),("error",c_uint8,8)]
class start_strm_resp(Structure):
_pack_=1
_fields_=[("header",message_header_single),("rfa0",c_uint8,2),("acp_seid",c_uint8,6)\
,("error",c_uint8,8)]def print_fields(st,gap=''):
print gap+str(st.__class__)+':'
for f in st._fields_:
a=st.__getattribute__(f[0])
try:
b=a.__getattribute__("_fields_")
print f[0]+":"
print_fields(a,gap+' ')
except: print gap+str(f[0]),adef avdtp_connect(dst,psm=25):
sock=bluetooth.BluetoothSocket( bluetooth.L2CAP ) sock.bind(("",psm)) sock.connect((dst,psm))
if deb: print "connected to ",dst,psm bluetooth.set_l2cap_mtu(sock,672)
return sock
def avdtp_disconnect(sock):
sock.close()
def init_command_single(req):
global tran
req.header.packet_type=PACKET_TYPE_SINGLE
req.header.message_type=MESSAGE_TYPE_COMMAND
req.header.transaction_label=tran
req.header.rfa0=0
tran=(tran+1) & 0xf
return req
def send_packet(sock,packet):
size=ctypes.sizeof(packet)
if deb>1:
print "sending packet",size,struct.unpack("%iB" %(size),packet) print_fields(packet)
l=sock.send(packet)
if l!=size: raise IOError('transmission error')
def receive_response(sock,resp_class,resp_error_class=None):
data=sock.recv(1024)
size=ctypes.sizeof(resp_class)
if len(data)>size:
if deb>1:print "warning, possibly wrong responce class ",len(data),size
if len(data)<size:
if deb>1:print "warning, got partial responce, pad with zeros",len(data),size
dl=size-len(data)
l0=[0 for i in range(dl)]
data+=struct.pack("%iB" %(dl),*l0)
resp=ctypes.cast(data,ctypes.POINTER(resp_class))
resp=resp.contents
if deb>1:
print "received",struct.unpack("%iB" %(len(data)),data)
print_fields(resp)return resp
def avdtp_get_capabilities(sock,seid):
cmd=message_single()
cmd=init_command_single(cmd)
cmd.header.signal_id=AVDTP_GET_CAPABILITIES
cmd.acp_seid=seid
send_packet(sock,cmd)
resp=receive_response(sock,getcap_resp)
return resp
def avdtp_discover(sock):
cmd=message_single()
cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_DISCOVER send_packet(sock,cmd) resp=receive_response(sock,sepd_resp)
lseid=[]
for i in range(1+MAX_ADDITIONAL_CODEC):
sep=resp.__getattribute__("n%i" %(i)) seid=sep.acp_seid
if seid:lseid.append(seid) # take non zero seid
if deb:print "got %i seid" %(len(lseid)) lsep=[(avdtp_get_capabilities(sock,seid),seid) for seid in lseid] return lsep
def avdtp_discover_rsp(sock):
global tran
cmd=receive_response(sock,message_single)
tran=cmd.header.transaction_label
rsp=sepd_resp()
rsp=init_command_single(rsp)
rsp.header.message_type=MESSAGE_TYPE_ACCEPT
rsp.header.signal_id=AVDTP_DISCOVER
sbc=rsp.n0
sbc.acp_seid=1
sbc.inuse=0
sbc.tsep=1
sbc.media_type=SBC_MEDIA_CODEC_TYPE
send_packet(sock,rsp)
def set_sbc_configuration(sock,capb_resp,seid,sbc_codec):
cmd=set_sbc_req()
cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_SET_CONFIGURATION cmd.serv_cap=MEDIA_TRANSPORT_CATEGORY cmd.acp_seid=seid
cmd.int_seid=1
cmd.cap_type=MEDIA_CODEC
cmd.length=6
cmd.media_type=AUDIO_MEDIA_TYPE cmd.media_codec_type=SBC_MEDIA_CODEC_TYPE cmd.sbc_elements=capb_resp.sbc_elements cmd.sbc_elements.allocation_method=2
# values of parameters in sbc routine and here are different
for par,vals in sbc_codec.conf_dict.items():
codec_att=sbc_codec.par.__getattribute__(par) code=vals[codec_att] resp_att=capb_resp.sbc_elements.__getattribute__(par) if resp_att & code:
if deb: print 'setting %s=%i, %i' %(par,code,codec_att) cmd.sbc_elements.__setattr__(par,code)
else:
if deb: print 'can not set %s=%i, %i' %(par,code,codec_att)
send_packet(sock,cmd) resp=receive_response(sock,set_sbc_resp)
if resp.header.message_type!=MESSAGE_TYPE_ACCEPT:
raise IOError('Can not set SBC codec parameters')
if deb: print "Successfully set SBC codec parameters" return seid,sbc_codec
def avdtp_set_configuration(sock,lsep,codecs):
""" select codec from available codecs
and sets codec configuration
just SBC codec is implemented
return seid, codec
"""
lsbc=[(resp,seid) for resp,seid in lsep if \
resp.header.message_type!=MESSAGE_TYPE_REJECT and\
resp.media_codec_type==SBC_MEDIA_CODEC_TYPE and\
resp.media_type==AUDIO_MEDIA_TYPE] if not lsbc: raise IOError('ACP site dose not have SBC codec')
if len(lsbc)>1 and deb: print 'ACP site has more then one SBC codec, take first' # if ever possible resp,seid=lsbc[0]
if deb: print "seid=",seid
return set_sbc_configuration(sock,resp,seid,codecs[SBC_MEDIA_CODEC_TYPE])
def avdtp_open(dst,sock,seid):
"""open the audio stream""" cmd=message_single() cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_OPEN cmd.acp_seid=seid
send_packet(sock,cmd) resp=receive_response(sock,open_strm_resp) if resp.error: raise IOError('Can not open stream') if deb: print "opened stream"
return avdtp_connect(dst,25)
def avdtp_start(sock,seid):
cmd=message_single() cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_START cmd.acp_seid=seid
send_packet(sock,cmd) resp=receive_response(sock,start_strm_resp) if resp.error: raise IOError('Can not start stream') if deb: print "started stream"
def avdtp_suspend(sock,seid):
cmd=message_single() cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_SUSPEND cmd.acp_seid=seid
send_packet(sock,cmd) resp=receive_response(sock,start_strm_resp) if resp.error: raise IOError('Can not stop stream') if deb: print "suspended stream"
def avdtp_close(sock,seid):
cmd=message_single() cmd=init_command_single(cmd) cmd.header.signal_id=AVDTP_CLOSE cmd.acp_seid=seid
send_packet(sock,cmd) resp=receive_response(sock,open_strm_resp) if resp.error: raise IOError('Can not close stream') if deb: print "closed steam"
class media_packet_header(Structure):
_pack_=1
_fields_=[("cc",c_uint8,4),("x",c_uint8,1),("p",c_uint8,1),("v",c_uint8,2)\
,("pt",c_uint8,7),("m",c_uint8,1)\
,("sequence_number",c_uint16),("time_stamp",c_uint32),("ssrc",c_uint32)]
class media_payload_header(Structure):
_pack_=1
_fields_=[("frame_count",c_uint8,4),("rfa01",c_uint8,1),("is_last_fragment",c_uint8,1)\
,("is_first_fragment",c_uint8,1),("is_fragmented",c_uint8,1)]def media_packet(data,timestamp,frame_count,seq_number):
mtu=672
if len(data)+ctypes.sizeof(media_payload_header)+ctypes.sizeof(media_packet_header)>mtu:
raise ValueError('Media packet size >mtu')
class _media_packet(Structure):
_pack_=1
_fields_=[("media_packet_header",media_packet_header)\
,("media_payload_header",media_payload_header)\
,("data",c_uint8*ctypes.sizeof(data))] packet=_media_packet() packet.media_packet_header.v=2 packet.media_packet_header.pt=1 packet.media_packet_header.sequence_number=seq_number packet.media_packet_header.time_stamp=timestamp packet.media_packet_header.ssrc=1 packet.media_payload_header.frame_count=frame_count packet.media_payload_header.is_fragmented=0 packet.media_payload_header.rfa=0 packet.data=data
return packet
##### AVCTP & AVRCP ##################################################################################
# Message types
AVCTP_COMMAND_FRAME=0
AVCTP_RESPONSE_FRAME=1
CMD_PASSTHROUGH=0
CMD_ACCEPTED=9
PLAY_OP=68 #0x44
STOP_OP=69 #0x45
PAUSE_OP=70 #0x46
NEXT_OP=75 #0x4b
PREV_OP=76 #0x4c
class avctp_header(Structure):
_pack_=1
_fields_=[("ipid",c_uint8,1),("cr",c_uint8,1),("packet_type",c_uint8,2),\
("transaction_label",c_uint8,4),("pid",c_uint16)]
class avctp_frame(Structure):
_pack_=1
_fields_=[("header",avctp_header),("ctype",c_uint8,4),("zeros",c_uint8,4),\
("subunit_id",c_uint8,3),("subunit_type",c_uint8,5),("opcode",c_uint8,8),\
("operand0",c_uint8,8),("operand1",c_uint8,8)]def avrcp_accept_connection():
sock=bluetooth.BluetoothSocket( bluetooth.L2CAP ) port=23
sock.bind(("",port))
sock.listen(1)
client_sock,address = sock.accept()
print "Accepted connection from ",address return client_sock
def avrcp_receive_commands(sock,callback):
while True:
data=sock.recv(1024)
if len(data)==0:break
cmd=ctypes.cast(data,ctypes.POINTER(avctp_frame))
cmd=cmd.contents
if cmd.header.packet_type!=PACKET_TYPE_SINGLE: raise ValueError('packet type != PACKET_TYPE_SINGLE')
if cmd.ctype==CMD_PASSTHROUGH: callback(cmd.operand0)
cmd.header.ipid=0 # use the same packet for responce
cmd.header.cr=AVCTP_RESPONSE_FRAME
cmd.header.packet_type=PACKET_TYPE_SINGLE
cmd.ctype=CMD_ACCEPTED
send_packet(sock,cmd) sock.close()
#####SBC codec, libscb #################################################################################
class sbc_struct(Structure):
_fields_=[("flags",c_ulong),("frequency",c_uint32),("channel_mode",c_uint32),("joint",c_uint32)
,('block_length',c_uint32),('subbands',c_uint32),('bitpool',c_uint32)\
,('data',c_void_p),('size',c_uint32),('len',c_uint32)\
,('duration',c_ulong), ('priv',c_void_p)]class sbc:
def __init__(self,*arg,**kwd):
self.par=sbc_struct()
self.libsbc=ctypes.CDLL('libsbc.so')
err=self.libsbc.sbc_init(ctypes.byref(self.par),c_ulong(1))
if err: print 'error initializing sbc coder',err
self.configure(*arg,**kwd)
def configure(self,frequency=44100,channels=2):
self.par.subbands=8
self.par.block_length=16
self.par.bitpool=32
self.par.frequency=frequency
self.par.channel_mode=channels
self.conf_dict={}
self.conf_dict['frequency']={48000:1,44100:2,32000:4,16000:8}
self.conf_dict['subbands']={8:1,4:2}
self.conf_dict['block_length']={16:1,12:2,8:4,4:8}
self.conf_dict['channel_mode']={2:2,1:1} def encode(self,data):
l=self.libsbc.sbc_encode(ctypes.byref(self.par),data,len(data)) return l,self.par.data,self.par.len,self.par.duration
def fin(self):
self.libsbc.sbc_finish(ctypes.byref(self.par))
##### useful functions ################################################################################ class timer:
def __init__(self):
self.time=time.time()
def dt_has_elapsed(self,dt):
return (time.time()-self.time)*1000000>dt-5000
def dt(self):
return (time.time()-self.time)*1000000 def start(self):
self.time=time.time()
def stream_pcm_pipe(f,lacp,commands,extimer=None):
""" streaming audio by reading pcm from a pipe or file. if extimer==None relays on pipe's timer, all packets are send as soon as read from the pipe.
if extimer!=None the given timer is used to send packets. """
packet_header_size=13
min_encoding_size=512
mtu=672
lpackets=[]
seq_number=0
frame_count=0
timestamp=0
elapsedtime=0
buf=(c_uint8*mtu)()
lenbuf=0
data=""
if extimer!=None:timer0=extimer()
if deb: timer1=timer()
timer2=timer()
while True:
time.sleep(0.00001) # some sleep
rdata=f.read(1000) # read
if 'quit' in commands: break
if len(lacp)==0 or 'pause' in commands:
if extimer!=None:timer0.start()
if deb: timer1.start()
timestamp=0
frame_count=0
lpackets=[]
continue # no streams: just read data from pipe
if len(rdata)>0:#change endiannes
adata=array.array('H')
adata.fromstring(rdata)
adata.byteswap()
rdata=adata.tostring()
data+=rdata
while len(data)>min_encoding_size: #encode
l,pendata,lendata,duration=lacp[0].codec.encode(data)
data=data[l:]
if lenbuf+lendata+packet_header_size>mtu: #enough for packet
packetdata=(c_uint8*lenbuf)()
ctypes.memmove(packetdata,buf,lenbuf)
lpackets.append(media_packet(packetdata,timestamp,frame_count,seq_number))
timestamp=elapsedtime # for following packet
frame_count=0
seq_number+=1
if deb and seq_number%1000==0:
print "sent 1000 packets, elapsed time is %g ms" %(timer1.dt())
timer1.start()
buf=(c_uint8*mtu)()
lenbuf=0
ctypes.memmove(ctypes.addressof(buf)+lenbuf,pendata,lendata)
lenbuf+=lendata
frame_count+=1
elapsedtime+=duration
while lpackets: #send packets while there are any
packet=lpackets[0]
if extimer==None or timer0.dt_has_elapsed(packet.timestamp):
for acp in lacp:
try:send_packet(acp.stream,packet)
except bluetooth.BluetoothError: # close and remove dead ACP
if deb: print "stream error ",acp.addr
acp.stream.close()
acp.sock.close()
if deb: print "close stream ",acp.addr
lacp.remove(acp)
if deb:
print "remove stream, number of streams left",len(lacp)
del lpackets[0]class acp: # container class to keep information about ACP
def __init__(self,addr):
self.addr=addr self.stream,self.sock,self.seid,self.codec=connect(addr)
def connect(addr,psm=25):
"""connects to a2dp sink on address addr """
sbc_codec=sbc(44100,2) # initialize sbc codec codecs={SBC_MEDIA_CODEC_TYPE:sbc_codec} # list the available codecs sock=avdtp_connect(addr,psm) # connect to the ACP side lsep=avdtp_discover(sock) # discover set of codec on ACP side seid,codec=avdtp_set_configuration(sock,lsep,codecs) # select and set codec parameters stream=avdtp_open(addr,sock,seid) # open audio stream avdtp_start(sock,seid) #start audio stream
return stream,sock,seid,codec
def avdtp_discover_abort(sock):
cmd=receive_response(sock,message_single)
cmd.header.message_type=MESSAGE_TYPE_COMMAND
cmd.header.signal_id=AVDTP_ABORT
send_packet(sock,cmd)
def advertise_a2dp():
"""advertise a2dp source""" server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP ) port=25
server_sock.bind(("",port)) server_sock.listen(1)
print "listening on port %d" % port
uuid = "110a" profile=[bluetooth.ADVANCED_AUDIO_PROFILE] classes=[bluetooth.AUDIO_SOURCE_CLASS,]
bluetooth.advertise_service( server_sock, "Audio Source", service_id = "", service_classes = [], \
profiles = [], provider = "", description = "") client_sock,(address,port) = server_sock.accept() print "Accepted connection from ",address return client_sock,address,port
##### simple multiple client A2DP & AVRCP streaming server ##########################################
class a2dp_streamer ( threading.Thread ):
def __init__ ( self, pipename, lacp,commands,timer=None):
self.pipename=pipename
self.lacp=lacp # list of ACP
self.timer=timer
self.commands=commands threading.Thread.__init__ ( self )
def run (self):
stream_pcm_pipe(self.pipename,self.lacp,self.commands,self.timer)
def callback_xmms(com):
if deb: print 'received command code',com
if com==PLAY_OP: os.popen('xmms --play')
elif com==STOP_OP: os.popen('xmms --stop')
elif com==PAUSE_OP:os.popen('xmms --pause')
elif com==NEXT_OP: os.popen('xmms --fwd')
elif com==PREV_OP: os.popen('xmms --rew')
else:
if deb: print "unknown command code",com
return 1
class avrcp_server ( threading.Thread ):
def __init__ ( self):
threading.Thread.__init__ ( self )
def run ( self ):
while True:
sock=avrcp_accept_connection()
avrcp_receive_commands(sock,callback_xmms)
if __name__=="__main__":
"""instructions are in the beginning of the file""" deb=1
control=avrcp_server() # start avrcp
control.start() #
lacp=[]
# addr="00:0D:44:2A:A1:4C" # can start with online acp
# lacp.append(acp(addr)) #
# addr="00:07:A4:00:17:FD" # works with many acp simultaneously
# lacp.append(acp(addr)) # but only if they are discovered at the beginning
commands=[]
f=open('/tmp/a2dpipe','rb',0)
while True:
# dynamically manages new ACP
# to initiate connection press PLAY button on headphones
# works only with single ACP
# discovery of second ACP destroys sound completely.
# maybe bluetooth is not thread safe? streamer=a2dp_streamer(f,lacp,commands)
streamer.start()
try:
sock2,addr,port=advertise_a2dp() commands.append('quit') #stop streamer
streamer.join()
avdtp_discover_abort(sock2)
sock2.close()
lacp.append(acp(addr))
except bluetooth.BluetoothError,what: print 'BluetoothError: ', what commands.remove('quit')
print 'number of ACP', len(lacp)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Re: [Bluez-devel] python a2dp
Hi Sergey,
This is interesting!
I don't know much about python so I'm having a few problems to make it run. I just installed the ctypes my ubuntu provides (0.9.6) but I get the =
following error :
Traceback (most recent call last):
File "./avdtp.py", line 49, in ?
from ctypes import Structure,c_uint8,c_uint16,c_ulong,c_uint32,c_void_p
ImportError: cannot import name c_uint8
Any ideas?
Thank you,
Fr=E9d=E9ric.
Sergey Krivov a =E9crit :
Quoted 10 lines
Hi,
this is a partial realization of AVDTP, A2DP and AVRCP profiles in python with simple example of a2dp-avrcp server. it is probably far from a2dp alsa-plugin theme since it is not written in C, but it might be useful for prototype development. Anyway, have a look.
All the feedback is welcome.
=
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Re: [Bluez-devel] python a2dp
Hi, Fr=E9d=E9ric,
Quoted 11 lines
I just installed the ctypes my ubuntu provides
(0.9.6) but I get the =following error :
=Traceback (most recent call last):
File "./avdtp.py", line 49, in ?
from ctypes import
Structure,c_uint8,c_uint16,c_ulong,c_uint32,c_void_p
ImportError: cannot import namec_uint8
i am using ctypes 1.0.0-1 on fedora core 6. c_uint8 is an alias for c_byte
to avoid replacing c_uint8 with c_byte in the code import c_byte instead c_uint8 and put afterwords c_uint8=3Dc_byte
=
___________________________________________________________________________=
_________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Re: [Bluez-devel] python a2dp
Hi,
Got the same error for c_uint16 and c_uint32
Now, I'm stuck with that one :
Traceback (most recent call last):
File "./avdtp.py", line 50, in ?
import bluetooth
ImportError: No module named bluetooth
I fear this one won't be solved the same way : where to find the module?
Frederic.
Sergey Krivov a =E9crit :
Quoted 25 lines
Hi, Fr=E9d=E9ric,
=
Quoted 11 lines
I just installed the ctypes my ubuntu provides
(0.9.6) but I get the =following error :
Traceback (most recent call last):
File "./avdtp.py", line 49, in ?
from ctypes import
Structure,c_uint8,c_uint16,c_ulong,c_uint32,c_void_p
ImportError: cannot import namec_uint8=i am using ctypes 1.0.0-1 on fedora core 6.
c_uint8is an alias forc_byte
to avoid replacingc_uint8withc_bytein the code importc_byteinsteadc_uint8and put afterwords c_uint8=3Dc_byte
Quoted 3 lines
=
_________________________________________________________________________=
___________
Quoted 7 lines
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job ea=
sier
Quoted 2 lines
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
Quoted 5 lines
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
=
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Re: [Bluez-devel] python a2dp
get it from http://org.csail.mit.edu/pybluez/
sorry, i probably should have it written in the file.
--- Fr=E9d=E9ric DALLEAU <[email protected]>
Quoted 30 lines · wrote:
Hi,
=Got the same error for
c_uint16andc_uint32Now, I'm stuck with that one :
=Traceback (most recent call last):
File "./avdtp.py", line 50, in ?
import bluetooth
ImportError: No module named bluetooth
=I fear this one won't be solved the same way : where to find the module?
=Frederic.
==
Sergey Krivov a =E9crit :
Quoted 6 lines
Hi, Fr=E9d=E9ric,
=
Quoted 2 lines
I just installed the ctypes my ubuntu provides
(0.9.6) but I get the =
Quoted 23 lines
Quoted 6 lines
Quoted 6 lines
following error :
Traceback (most recent call last):
File "./avdtp.py", line 49, in ?
from ctypes importStructure,c_uint8,c_uint16,c_ulong,c_uint32,c_void_p
Quoted 15 lines
Quoted 2 lines
ImportError: cannot import name
c_uint8=i am using ctypes 1.0.0-1 on fedora core 6.
c_uint8is an alias forc_byte
to avoid replacingc_uint8withc_bytein the code importc_byteinsteadc_uint8and put afterwords c_uint8=3Dc_byte=
___________________________________________________________________________=
_________
Quoted 7 lines
Quoted 2 lines
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mailbeta.
Quoted 3 lines
-------------------------------------------------------------------------
Quoted 8 lines
Quoted 1 line
Using Tomcat but need to do more? Need to support
web services, security?
Quoted 1 line
Get stuff done quickly with pre-integrated
technology to make your job easier
Quoted 1 line
Download IBM WebSphere Application Server v.1.0.1
based on Apache Geronimo
Quoted 1 line
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
Quoted 5 lines
Quoted 4 lines
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 7 lines
Quoted 1 line
=
=
=
-------------------------------------------------------------------------
Quoted 7 lines
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
Quoted 4 lines
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 1 line
=
=
___________________________________________________________________________=
_________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Reiner
Quoted 2 lines
What I did notice is that the volume could be higher and there is the occasional faint clicking which might be due to clipping.
I did try to hunt these down for a good while but didn't have a lot of luck. It came down to a balance of one problem or the other. :(
I was thinking recently both these could be solved by doing dynamic compression before encoding the audio. It would reduce the dynamic range however.
Brad
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Am Donnerstag, 9. November 2006 11:42 schrieb Adrian Glaubitz:
Quoted 7 lines
Hi Marcel !
Quoted 4 lines · Marcel Hilzinger
Hi,
I made some tests with bluetooth stereo headsets and a2dpd. I must confess, I'm impressed by the easy use of a2dpd! Thanks, it's ju=
st
Quoted 29 lines
Quoted 1 line
great.
Yes, the usage is very simple, indeed. Once I figured out how to use passkey-agent, the connection worked immediately ;).
Quoted 4 lines
But I'm not impressed by the audio quality. Its quite noisy and far away from the quality of normal wireless headphones. Headset was a Jabra BT620s. I tried with different dongles, but the dongle seems to make no difference.
My problem with the audio quality and a2dpd is, that the quality is set to telephone quality only (8kHz, Mono) though my headset can do up to 44,1kHz Stereo (SONY VGP-BRM1D) and a2dpd even displays 44,1kHz. When using a2play I can listen in 44,1kHz quality, so this is an issue with a2dpd for me (but a2play plays the MP3s with higher speed, so they sound high-pitched). Also the sound is chopped very often with a2dpd, so this is no use for me at the moment :(.
Quoted 2 lines
Questions:
is this a problem of the technology?I don't think so, this is rather due to the fact that btsco is still in Alpha status of development.
Quoted 1 line
is it a problem of bluez?
No, I'd rather blame btsco. (I tried different kernel versions, 2.6.17.9 and 2.6.19-rc5 and the most recent bluez-utils version).
Quoted 8 lines
Quoted 1 line
did I something wrong?
Have you tried a2play instead ? Do this:
- hcitool scan
- passkey-agent <code> <address>
- btsco -r -v <address>
- mpg123 --au - file.mp3 | a2play <address>
Hey, thanks! I tried this once before, but it didn't work. So I gave up. Bu= t =
now it works like a charm and yes, sound quality is better.
However, with this solution I can only play MP3 files. But most of my =
collection is in OGG-Vorbis. And how to skip to next/previous track?
Quoted 7 lines
Quoted 2 lines
did anybody compare the quality on Windows? I tried to compare with Mac. But as Mac OS X cannot do a2dpd, it's even worse on Mac.
I was not able to use my headset in Windows, Windows doesn't give me any options for choosing the headset as an audio output-device, though I can to the headset successfully. On 2 Macintosh Mini (Intel and PPC) with OS 10.4 I was able to connect to the headset without any problems, and I cou=
ld
Quoted 4 lines
choose my headset for all the sound-output so I was able to listen to iTunes via the headset. The only drawback on the Mac is, that the quality is limited to 8000Hz, 16 Bit mono (and the Audio Utility won't let me choose any better quality, though the headset supports this).
Mac does not support a2dp, that's why the quality is bad.
-- =
Mit freundlichen Gr=FC=DFen,
Marcel Hilzinger
Linux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
You should be able to use the command line encoding tools in their decode modes to play most formats. For example:
flac -c -d [file] | aplay
lame --decode [file] - | aplay
oggdec -c [file] | aplay (not so sure about this one, some command switches are like flac, some aren't)
Should stretch to some other formats too, wavpack springs to mind (although i can't remember its command line syntax).
Quoted 8 lines · Marcel Hilzinger
Am Donnerstag, 9. November 2006 11:42 schrieb Adrian Glaubitz:
Quoted 7 lines
Hi Marcel !
Quoted 4 lines · Marcel Hilzinger
Hi,
I made some tests with bluetooth stereo headsets and a2dpd. I must confess, I'm impressed by the easy use of a2dpd! Thanks, it's =
just
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
great.
Yes, the usage is very simple, indeed. Once I figured out how to use passkey-agent, the connection worked immediately ;).
Quoted 1 line
But I'm not impressed by the audio quality. Its quite noisy and far a=
way
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
from the quality of normal wireless headphones. Headset was a Jabra BT620s. I tried with different dongles, but the dongle seems to make =
no
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
difference.
My problem with the audio quality and a2dpd is, that the quality is set to telephone quality only (8kHz, Mono) though my headset can do up to 44,1kHz Stereo (SONY VGP-BRM1D) and a2dpd even displays 44,1kHz. When using a2play I can listen in 44,1kHz quality, so this is an issue with a2dpd for me (but a2play plays the MP3s with higher speed, so they sound high-pitched). Also the sound is chopped very often with a2dpd, so this=
is
Quoted 15 lines
Quoted 15 lines
no use for me at the moment :(.
Quoted 2 lines
Questions:
is this a problem of the technology?I don't think so, this is rather due to the fact that btsco is still in Alpha status of development.
Quoted 1 line
is it a problem of bluez?
No, I'd rather blame btsco. (I tried different kernel versions, 2.6.17.9 and 2.6.19-rc5 and the most recent bluez-utils version).
Quoted 1 line
did I something wrong?
Quoted 8 lines
Quoted 6 lines
Have you tried a2play instead ? Do this:
- hcitool scan
- passkey-agent <code> <address>
- btsco -r -v <address>
- mpg123 --au - file.mp3 | a2play <address>Hey, thanks! I tried this once before, but it didn't work. So I gave up. =
But
Quoted 7 lines
now it works like a charm and yes, sound quality is better.
However, with this solution I can only play MP3 files. But most of my collection is in OGG-Vorbis. And how to skip to next/previous track?
Quoted 1 line
Quoted 1 line
did anybody compare the quality on Windows? I tried to compare with M=
ac.
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
But as Mac OS X cannot do a2dpd, it's even worse on Mac.
I was not able to use my headset in Windows, Windows doesn't give me any options for choosing the headset as an audio output-device, though I can to the headset successfully. On 2 Macintosh Mini (Intel and PPC) with OS 10.4 I was able to connect to the headset without any problems, and I c=
ould
Quoted 17 lines
Quoted 4 lines
choose my headset for all the sound-output so I was able to listen to iTunes via the headset. The only drawback on the Mac is, that the quality is limited to 8000Hz, 16 Bit mono (and the Audio Utility won't let me choose any better quality, though the headset supports this).
Mac does not support a2dp, that's why the quality is bad.
--
Mit freundlichen Gr=FC=DFen,
Marcel HilzingerLinux New Media AG
S=FCskindstr. 4
D-81929 M=FCnchen
Tel: +49 (89) 99 34 11 0
Fax: +49 (89) 99 34 11 99
Quoted 3 lines
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job ea=
sier
Quoted 2 lines
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
Quoted 5 lines
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-- =
Thomas Kear
[email protected]
+6421996486
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi Adrian,
I've been using a2dpd for days with xmms.
I've pretty good quality and the latest patch make it possible to select encoding parameter so sound is better. There is still some gain loss but it is enough to make you deaf.
Quoted 2 lines
the quality is set to telephone quality only (8kHz, Mono) though my headset can do up to 44,1kHz Stereo (SONY VGP-BRM1D) and a2dpd even displays 44,1kHz.
8khz is when you use heasetd and sco, isn't it? a2dpd will be 44,1 khz but you may have choppy sound.
Quoted 1 line
Also the sound is chopped very often with a2dpd, so this is no use for me
at the moment :(.
Which player are you using? I have to agree that some player are giving us trouble, but I had success with xmms,vlc and mpg321.
Quoted 1 line
Quoted 1 line
did anybody compare the quality on Windows?
There is a product called BlueSoleil that you might want to try.
Regards,
Frederic
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hello Frederic,
Quoted 3 lines
I've been using a2dpd for days with xmms.
I've pretty good quality and the latest patch make it possible to select encoding parameter so sound is better. There is still some gain loss but it is enough to make you deaf.
Maybe I should go for the latest patches then, too. Though I think my version (30 Oct) is quite recent.
Quoted 5 lines
Quoted 3 lines
the quality is set to telephone quality only (8kHz, Mono) though my headset can do up to 44,1kHz Stereo (SONY VGP-BRM1D) and a2dpd even displays 44,1kHz.
8khz is when you use heasetd and sco, isn't it? a2dpd will be 44,1 khz but you may have choppy sound.
I have 8kHz and choppy sound :(. But as I said before, sound is almost perfect with "a2play" except for some noise and the speed-problems.
Quoted 4 lines
Quoted 2 lines
Also the sound is chopped very often with a2dpd, so this is no use for me
at the moment :(.
Which player are you using? I have to agree that some player are giving us trouble, but I had success with xmms,vlc and mpg321.
I tried "xmms" (latest Debian ETCH) for a2dpd and mpg123 for a2play.
Greetings,
Adrian
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel