![]() |
Re: A2DP works, help me test it?
Quote:
I should get mine at the end of the work or early next week and I will see how it works when paired with my BlueAnt X5i BT Stereo headphones. I really would like to see what these headphones are REALLY capable of. I'm getting sick of the HS/HF Profiles (although I can stand it when watching a movie on my N800, but music sucks) Maybe by 2010 we will have full A2DP support for the IT's. :eek: |
Re: A2DP works, help me test it?
Well, I did get mplayer building, so now I will start hacking on it a bit more... Increasing the alsa buffer size seems to have helped a lot with the skipping issues... IE, it no longer skips mplaying mp3s for me, as long as I be nice to it (no using the device, but that was the same in 2007). I am able to run top in another terminal without impacting playback, and it reports mplayer is using an average of about 55-60% CPU. Also, the output is a lot cleaner (much less resetting the audio device). Originally I was planning on increasing the buffer size manually in the code, but switching from CUNKSIZE based buffer size to BUFFERTIME based size, it took care of itself. Just a simple #define! :) The buffer size seems to cap at 25600, just slighting above the default value for a PC, so this is about the best gain we can get from this method. I guess I'll start investigating other options for further improvements...
------- Here is the deb I'm using currently, with that fix. Tell me if you hear better performance as well! http://cs.trinity.edu/~aharwell/mpla...l_bufftime.deb Copy/paste-able instructions: Code:
wget http://cs.trinity.edu/~aharwell/mplayer_1.0rc1-maemo.24.n8x0_armel_bufftime.debCode:
mplayer -ao alsa:device=bluetooth my.mp3Edit 2: WOW. So, with the following ~/.mplayer/config Code:
ao=alsa:device=bluetoothEdit 3: I just tried playing video, because I was curious how badly it worked. They play perfectly even with a2dp audio! Please test this as well, if you can. Note: For video playback, I have found it necessary to add Code:
delay=0.2 |
Re: A2DP works, help me test it?
rm_you: Congratulations with the successful start hacking mplayer :)
Once you consider that your fixes are good enough for everyone to use, feel free to submit a patch and it will be included in the next build of mplayer. Of course, an important requirement is not to introduce any regressions. Right now I don't quite like how ALSA behaves (playing sound using standard speakers). The sound is choppy and lots of the following messages show up in the console: Code:
alsa_dsp_transfer(): Requested too much data transfer (playing only 2048) |
Re: A2DP works, help me test it?
Quote:
Edit: I took a closer look at what's going on... When I use -ao alsa:device=bluetooth it gets a buffersize of 25600, but when i just use -ao alsa for playing via speakers, it automagically gets a buffersize of 4096. I guess it would be good to know WHY. I'll look into it... |
Re: A2DP works, help me test it?
I'm testing with: mplayer -ao alsa /home/user/MyDocs/.videos/Nokia_N810.avi
I did not use your .deb but tried the following patch (it should contain exactly your fix according to your description): Code:
Index: libao2/ao_alsa.c |
Re: A2DP works, help me test it?
That is very odd... It chooses 4096 buffersize when using "-ao alsa" when it is playing both mp3 and video, but for some reason it works fine for mp3s and not for video. Since the buffer size is exactly the same for both, I would guess that is not the direct cause, but since the only change I made to cause that problem was to change the buffer size, the cause must at least be related. I will keep looking.
|
Re: A2DP works, help me test it?
Quote:
Well, as I said earlier: "Preferably, ALSA should work fine with both bluetooth headphones and the standard speaker. But as ALSA is unusable for standard speakers at the moment anyway, I don't mind tweaking and using it for bluetooth only first." :) |
Re: A2DP works, help me test it?
Ah, ok :) I just figured that out myself, and I was coming back here to post about it like "erm?" but I guess I just misunderstood. Well, that is a relief! :) I suppose since I am bored and working on ALSA stuff right now, I may as well look into that issue anyway.
|
Re: A2DP works, help me test it?
Can we expect this ALSA Bluetooth patch in the next Maemo Mplayer build?
Thanks |
Re: A2DP works, help me test it?
Hi,
first of all thanks for trying to figure the N800 a2dp issue out, I think it's a needed feature and should not be postponed if it can be used to some extent. Secondly, I'm new to all this hacking, but I got the a2dp working with a Sony HWS-BTA2W audio gateway. The sound still breaks up frequently like many others state. I'd like to try editing the ALSA buffer size. How can I do that? Besides following this topic I also found this ALSA configuration guide on the Bluez Wiki Would this part be related to buffer size? "It is not necessary to create a virtual device as in alsa, configuration can be change via element properties: a2dpsink Element Properties: name : The name of the object flags: readable, writable String. Default: null Current: "a2dpsink0" preroll-queue-len : Number of buffers to queue during preroll flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 sync : Sync on the clock flags: readable, writable Boolean. Default: true Current: true max-lateness : Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited) flags: readable, writable Integer64. Range: -1 - 9223372036854775807 Default: -1 Current: -1 qos : Generate Quality-of-Service events upstream flags: readable, writable Boolean. Default: false Current: false device : Bluetooth remote device address flags: readable, writable String. Default: null Current: null " |
| All times are GMT. The time now is 16:46. |
vBulletin® Version 3.8.8