|
|
2008-03-17
, 22:06
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#2
|
# 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: | ||
|
|
2008-03-17
, 22:06
|
|
Posts: 129 |
Thanked: 9 times |
Joined on Jan 2008
|
#3
|
|
|
2008-03-17
, 22:10
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#4
|
|
|
2008-03-18
, 01:22
|
|
Posts: 5 |
Thanked: 0 times |
Joined on Aug 2007
@ Arizona
|
#5
|
|
|
2008-03-18
, 07:46
|
|
Posts: 122 |
Thanked: 12 times |
Joined on Feb 2007
@ Helsinki, Finland
|
#6
|
|
|
2008-03-18
, 13:28
|
|
Posts: 161 |
Thanked: 75 times |
Joined on Feb 2008
|
#7
|
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.
|
|
2008-03-18
, 13:42
|
|
Posts: 82 |
Thanked: 6 times |
Joined on Nov 2007
|
#8
|
|
|
2008-03-18
, 14:01
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#9
|
|
|
2008-04-08
, 22:32
|
|
Posts: 31 |
Thanked: 13 times |
Joined on Mar 2008
@ Germany
|
#10
|
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:
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" }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.
n800 OS2008 Chinook