| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Setting 'high priority' on the Music Player? (https://talk.maemo.org/showthread.php?t=45996)

ToJa92 2010-02-26 22:42

Setting 'high priority' on the Music Player?
 
As the topic says, is there anyway to set a higher priority on the music player so it doesn't stutters while doing other stuff on my N900? I don't mind if an app takes 1 second longer to launch, as long as the music still plays.

----------------
Now playing: Tool - Forty Six & 2

ear0wax 2010-02-26 22:49

Re: Setting 'high priority' on the Music Player?
 
I believe changing the nice level is what you want to do.

http://linux.about.com/library/cmd/blcmdl1_nice.htm

hawaii 2010-02-27 06:17

Re: Setting 'high priority' on the Music Player?
 
Try `renice` on a running PID.

Lazarpandar 2010-02-27 07:13

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by ear0wax (Post 548326)
I believe changing the nice level is what you want to do. [/url]

Dude, nice!

badum psh

ToJa92 2010-02-27 13:15

Re: Setting 'high priority' on the Music Player?
 
The music player is /usr/bin/pulseaudio, right? If so, it doesn't seem to work. It lagged a little bit still. Also the command line options already include --high-priority.

EDIT: Ran 'renice -10 <pulseaudio PID>' but it still lagged sometimes..
EDIT#2: Also ran 'renice -20 <pulseaudio PID>' (the highest priority) but it still lagged.

paulkoan 2010-02-27 14:24

Re: Setting 'high priority' on the Music Player?
 
Pulseaudio is the sound daemon

/usr/bin/mediaplayer is the media player

tso 2010-02-27 14:34

Re: Setting 'high priority' on the Music Player?
 
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

bbin 2010-02-27 15:12

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by tso (Post 548885)
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

Stuttering usually happens when rendering webpages or doing something a bit more resource demanding.

I read that nexus one and droid also suffer from this.

ToJa92 2010-02-28 10:18

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by tso (Post 548885)
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

Yes, I guess Firefox uses it's fair share of the memory. Maybe I should disable the disc cache?

ear0wax 2010-02-28 10:49

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by bbin (Post 548913)
Stuttering usually happens when rendering webpages or doing something a bit more resource demanding.

I read that nexus one and droid also suffer from this.

We have a DSP chip, From what i under stand it handles sound processing and network traffic so downloads could cause it. The cpu would be what accually does the rendering.

If you want to see if its the storage bandwith topping out, you could always stick your music on the sd card and test that theroy. I keep all my music on the sd, and i only get shuttering when I get notifaction spamed.


| 1   2   | Next
All times are GMT. The time now is 09:19.

vBulletin® Version 3.8.8