Reply
Thread Tools
Posts: 5 | Thanked: 0 times | Joined on Aug 2007 @ Arizona
#1
Mmpc is letting me browse tunes by artist and add items to a playlist (screenshot). The only one, tiny, part that's not quite working yet is the sound. There isn't any. When I press the play button, each tune in the playlist zips through in 'zero' time. I didn't find error messages in the mpd log that seem related and dmesg didn't show anything. Where else should I look?

Is there something kinky about how sound is done on the n800? I mean more than the normal linux kinkiness? (It always seems to be the last thing I get working on my desktop).

"user", from where I manually start mpd, has a mpdconf file I assembled from pieces of the (mostly commented) /etc/mpd.conf provided with the mpd. I added an 'audio_output' spec to get mpd started, but I wasn't really sure what to put in there. Right now my .mpdconf for 'user' has:

Code:
port			"6600"
replaygain              "track"

#s link
music_directory         "/home/user/Music" 

playlist_directory      "/home/user/.mpd/playlist"
db_file                 "/home/user/.mpd/tag_cache"
log_file                "/home/user/.mpd/log"
error_file              "/home/user/.mpd/errors"
pid_file                "/home/user/.mpd/pid"
#bind_to_address "localhost"
#
#audio_output {
#       type            "oss"
#       name            "OSS  device"
#}
audio_output {
	type	"alsa"
	name	"default"
}
#mixer_type "oss"
#mixer_device "/dev/mixer"
}
That was just a guess. Does the n800 do alsa? Pulse?

This at least got mpd past complaining when it couldn't auto-detect an output device (mpd --verbose --stdout). But one of the mpc windows (attached) lists nothing under output devices. I take that to mean mmpc isn't entirely happy.

My search on the mpd wiki and the web makes me think I'd best ask here, before I venture down the path of .asound files and so on.

Picking the week I'm home with the flu to start a project wasn't the best timing, but it's been better than spending seven days doing crosswords.
Attached Images
  
__________________
n800 OS2008 Chinook
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#2
Here's my /etc/mpd.conf. I left all sections with any active parameters intact, but pruned the sections with everything commented.

As it says, the libao (-> esd) output is the one you want.
Code:
# MPD CONFIG FILE

##################### REQUIRED ###########################

# You can put symlinks in here, if you like.  Make sure
# user that mpd runs as (see the 'user' config parameter)
# can read the files in this directory
music_directory		"/home/user/MyDocs/.sounds"
playlist_directory	"/home/user/MyDocs/.sounds"

db_file			"/home/user/.mpd/tag_cache"
log_file		"/home/user/.mpd/mpd.log"
error_file		"/home/user/.mpd/errors.log"
pid_file		"/home/user/.mpd/pid"
##########################################################

##########################################################
# EVERYTHING ELSE IS OPTIONAL
##########################################################

################## AUDIO OUTPUT ##########################
#
# use this if you want to use OSS audio output
#audio_output {
#	type		"oss"
#	name		"my OSS sound card"
#	device		"/dev/dsp" # optional
#	format		"44100:16:2" #optional
#}
#
# use this if you want to use ALSA audio output
#audio_output {
#	type		"alsa"
#	name		"my ALSA device"
#	device		"hw:0,0" # optional
#	format		"44100:16:2" #optional
#}
#
# using esound through libao is the least buggy output method
audio_output {
    type		"ao"
    name		"default ao output"
}
#
#
# Set this if you have problems
# playing audio files.
# This will resample your music so
# that it comes out at the set rate.
#
#audio_output_format	"44100:16:2"
#
##########################################################

#################### OPTIONAL FILES ######################
#
# The state file (if set) will be a file
# for storing all current information
# (playlist, playing/paused, etc...) from
# the last MPD session. This will be used
# to recreate your last MPD session after
# restart.
#
state_file         "/home/user/.mpd/state"

#
##########################################################

################# SECURITY SETTINGS ######################
#
# It is encouraged to run MPD as
# non-superuser.  If you start mpd as root
# (for example, in an init script), set
# this value, then  mpd will drop root priveleges
# and runs as the user specified.
#
user               "user"
#
# Set this value if you only have one
# address you want to allow connection to.
#
bind_to_address	"localhost"
#
# If you want to setup MPD to use
# passwords set them here
#
#password		"password1@read,add,control,admin"
#password		"password2@read"
#
# Specify permissions used by default when no password is
# given by for a connection/client.
#
#default_permissions	"read,add,control,admin"
#
##########################################
 

The Following 2 Users Say Thank You to Benson For This Useful Post:
Posts: 129 | Thanked: 9 times | Joined on Jan 2008
#3
whats mmpc and whats special about it?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#4
It inserts apostrophes in contractions, capitalizes the initial letters of sentences, and searches before it posts.
<pinch>
Oh, no, I guess I was dreaming there for a moment.
 
Posts: 5 | Thanked: 0 times | Joined on Aug 2007 @ Arizona
#5
Thank you Benson, 'ao' was the missing piece.

The n800 is the toy that's finally caught up to what I used to imagine my handheld toy puzzle was, fifty years ago.

So far I've avoided the urge to develop anything for the n800. I've spent too many hours of my life with my eyes glued to a screen as it is. I just want to be a consumer when I come home from work now.

But writing my own mp client would be fun...hmmm..
__________________
n800 OS2008 Chinook
 
Posts: 122 | Thanked: 12 times | Joined on Feb 2007 @ Helsinki, Finland
#6
Originally Posted by OppositeOfIgnorance View Post
whats mmpc and whats special about it?
By using some Google magic: http://mmpc.garage.maemo.org


By the way, does mmpc support changing the active audio output of mpd? I have Glurp installed on my 770 and it does this. For example, I have mpd running on my Ubuntu server and I have enabled both alsa and esound in mpd's config. I have also forwarded the esd output from the server to the 770 (http://www.advogato.org/person/pycag....html?start=43). Then I can choose if the sound comes from the speakers attached to the server (alsa), from the IT (esd) or both.
__________________
Got fed up with constant reboots and poor hardware quality. The 770 is gathering dust, I'm now using a netbook and a Android phone.
 
Posts: 161 | Thanked: 75 times | Joined on Feb 2008
#7
Originally Posted by Tragos View Post
By the way, does mmpc support changing the active audio output of mpd? I have Glurp installed on my 770 and it does this. For example, I have mpd running on my Ubuntu server and I have enabled both alsa and esound in mpd's config. I have also forwarded the esd output from the server to the 770 (http://www.advogato.org/person/pycag....html?start=43). Then I can choose if the sound comes from the speakers attached to the server (alsa), from the IT (esd) or both.
Heh, the box that displays the active audio output(s) is unusable. I've emailed the author several times to get stuff fixed, but he doesn't respond. I would do it myself, but I can't extract the tarball too.

Last edited by Navi; 2008-03-18 at 13:40. Reason: Was able to extract it. The tarball is gzipped twice.
 
Posts: 82 | Thanked: 6 times | Joined on Nov 2007
#8
I`ve set this up before. I got mpd working on my linux box and mmpc on the nokia n800 works like a charm. I even got mpd to stream all my songs to the internet using another addon.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#9
Originally Posted by Navi View Post
Heh, the box that displays the active audio output(s) is unusable. I've emailed the author several times to get stuff fixed, but he doesn't respond. I would do it myself, but I can't extract the tarball too.
Well, the box does work if you rotate to portrait mode, though a bunch of other stuff is inaccessible then. Also going to a small-font theme can help work around this sort of stuff. 12-pt seems to work fine here. I keep some 12-pt themes installed to deal with this kinda stuff.
 
Posts: 31 | Thanked: 13 times | Joined on Mar 2008 @ Germany
#10
anyone got this running on a n810? i got audio output but only with heavy distortion. i decreased the nice value of mpd, try different audio device settings in mpd.conf but nothing helped. just sounds as if it has a problem with cpu load or something. when you switch other programs it even gets worse, slow down and so on. Someone could help?
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:13.