![]() |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Maemo is actually pretty much like desktop Linux regarding sound. There are only a few differences:
- PulseAudio runs in system mode - PulseAudio is somewhat-patched and the protocol is partially incompatible with newer PulseAudio client libraries (was this fixed in SSU?) You are also overrating the special Nokia codecs effect on battery life -- http://tuomas.kulve.fi/blog/2009/11/...on-ogg-vs-mp3/ |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
Quote:
Some additonal observations:
The first two points reduced the stuttering quite a lot, so probably on an overclocked n900 it will be perfectly fine. But any activity (task switching, using of player interface) leads to drop-outs (at least here). So increasing task priority or some audio buffer size(? but how) could help. Oh, and you'll need to install the gstreamer0.10-alsa package if you didn't already. |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
/Estel |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
Probably the pulseaudio source they use (if it is one of the open Maemo components) has to be patched to enable a 'normal' behaviour... I mean, using a mouse is normal in the Linux world and it was not there :P |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
I tried the simplified command line directly (no audioconvert/audioresample). Had media player playing some flacs through the DAC *and* the phone jack at the same time, with a noticeable delay between the two :-) Stutter is bad, yes, at least if you try to do anything else... My impression is that most of it is due to screen activity. Any time the display changes the sound is disrupted. Heck, even the media player alone manages to disrupt itself when the blue progress bar updates :-) OTOH, bringing a very static display to the foreground (like xterm), and letting the screen blank itself, results in al most perfect playback. There is still the occasional hiccup, probably a daemon waking up or flash memory access :-) So now we have another piece to the puzzle, as you have proved that "standard output" can de redirected to out USB device. It's just that all the pieces don't quite fit together yet :-) |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
MAFW's auto-renices itself to an higher priority, so maybe you could also do that
|
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
|
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
Tonight was a better moon or something, and it's playing right now, and as you said, it works real well... The UI is a bit crazy, like with all big desktop apps ported to Maemo "as is" :-) The CPU load looks quite reasonable, and stable enough. No stutter, even when moving around other screens. All in all, this is the closest thing to a usable solution I've seen so far. As with MOC, I really wish the N900 rocker keys could be used for something else than volume up/down (that would be controlled by the external DAC/amp anyway). I'd settle for "pause" on one side, and "next" on the other, as I mostly use Shuffle mode anyway... |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Quote:
Standard output is unaffected there - it's just that, at some point (close to end) You're "splitting" output to two sources. "cloning" it. Now, this second branch, is directed @ external DAC. This approach seems to be most resource-intensive, as device is doing the same sound-related work literally twice (well, except actual media decoding). Which, of course doesn't change the fact, that investigating recaller code was a brilliant idea, and I would not think about something like that in thousand years. Still - correct me if I'm wrong - we can't scavenge knowledge learned here, to achieve our main goal. What about investigating Maemo's pulseaudio code? Maybe it's really some "uncomment" work to allow hassle-free redirecting of output (like disabled mouse)? /Estel // Edit And what about mafw-wrapper? Is it closed source? Maybe we can alter it to pout sound to external DAC instead of pulseaudio? |
Re: WIP: USB audio output - N900 as an "audiophile" portable music player
Thanks for correcting my misunderstanding.
I don't think I'd be up to analysing and hacking C or C++ systems code though... just wouldn't know where to start :-) |
| All times are GMT. The time now is 13:23. |
vBulletin® Version 3.8.8