|
|
2008-01-02
, 00:58
|
|
|
Posts: 98 |
Thanked: 189 times |
Joined on Jul 2007
@ San Antonio, TX
|
#42
|
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...wget http://cs.trinity.edu/~aharwell/mplayer_1.0rc1-maemo.24.n8x0_armel_bufftime.deb apt-get remove mplayer apt-get install libmad0 libogg0 libtheora0 dpkg -i mplayer_1.0rc1-maemo.24.n8x0_armel_bufftime.deb
mplayer -ao alsa:device=bluetooth my.mp3
I will test that shortly...ao=alsa:device=bluetooth
delay=0.2
| The Following 6 Users Say Thank You to rm_you For This Useful Post: | ||
|
|
2008-01-02
, 13:56
|
|
Posts: 503 |
Thanked: 267 times |
Joined on Jul 2006
@ Helsinki
|
#43
|

alsa_dsp_transfer(): Requested too much data transfer (playing only 2048)
It is interesting that tweaking/increasing buffer size helps with A2DP. 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.
|
|
2008-01-02
, 16:24
|
|
|
Posts: 98 |
Thanked: 189 times |
Joined on Jul 2007
@ San Antonio, TX
|
#44
|
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)
I wonder if there is something else going on at the same time on your system? top reports 6-8% CPU usage playing using alsa, so I don't know if that could even be it... :/|
|
2008-01-02
, 16:59
|
|
Posts: 503 |
Thanked: 267 times |
Joined on Jul 2006
@ Helsinki
|
#45
|
Index: libao2/ao_alsa.c =================================================================== --- libao2/ao_alsa.c (revision 303) +++ libao2/ao_alsa.c (working copy) @@ -70,8 +70,8 @@ #define ALSA_DEVICE_SIZE 256 -#undef BUFFERTIME -#define SET_CHUNKSIZE +#define BUFFERTIME +#undef SET_CHUNKSIZE static void alsa_error_handler(const char *file, int line, const char *function, int err, const char *format, ...)
|
|
2008-01-02
, 18:07
|
|
|
Posts: 98 |
Thanked: 189 times |
Joined on Jul 2007
@ San Antonio, TX
|
#46
|
|
|
2008-01-02
, 18:24
|
|
Posts: 503 |
Thanked: 267 times |
Joined on Jul 2006
@ Helsinki
|
#47
|
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.
|
|
2008-01-02
, 18:29
|
|
|
Posts: 98 |
Thanked: 189 times |
Joined on Jul 2007
@ San Antonio, TX
|
#48
|
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.
|
|
2008-01-03
, 15:34
|
|
Posts: 19 |
Thanked: 11 times |
Joined on Dec 2007
|
#49
|
|
|
2008-01-05
, 00:05
|
|
Posts: 12 |
Thanked: 0 times |
Joined on Jan 2008
@ Helsinki
|
#50
|
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.