M-Audio Revolution 5.1 + oss + mpd

Hi, all.
What should I write in mpd.conf if I want to use volume control in Sonata and headphone output on my Revolution 5.1 with oss?

Did you ever figure out how to control a specific volume control with mpd + oss4?

Similar Messages

  • Having sound distortions in games with M-Audio Revolution 7.1

    I'm having sound distortion problems with a couple of games. I think this started a few OS X updates ago, but not sure which one. Two known games are Quake 3 and Quake 4. When I run either of them, the sound is deep and distorted.
    I'm sure an update of OS X broke m-audio's revolution driver. I currently have driver version 1.4.1. I only have distortions when sending sound output to my sound card. Sound sent to internal speaker comes out fine. I also tried with a freshly created user and freshly reinstalled driver & prefs. Same problem.
    I've tried M-Audio's site with no luck for solutions. It's been a year or so since they have updated it.
    Is anyone else having similar experiences with their M-Audio Revolutions?
    PM 1.25DP G4 (MDD)   Mac OS X (10.4.7)   Revolution 7.1

    Information taken from M-audio's site about Mac Reqs:
    All Platforms
    • available PCI card slot
    • CD-ROM drive
    Apple Macintosh®
    Minimum Required (for stereo operation)
    • Apple Macintosh® G4*
    • Mac OS 9.2.2 or later; Mac OS X version 10.2.6 or later
    • 256MB RAM
    Minimum Required (for multi-channel operation)
    • Apple Macintosh® G4* 733MHz QS
    • Mac OS 9.2.2 or later; Mac OS X version 10.2.6 or later
    • 256MB RAM
    Recommended
    • Apple Macintosh® G4* 800MHz QS or better
    • DVD-ROM drive
    • Mac OS X version 10.3 or later (Apple DVD Player required or AC-3 or DTS)
    • 512MB RAM
    *CPU Accelerator cards are not supported
    I dont think the Card will fully work with your Machine, because of your BWG3's specs.
    Reading the basic info, for Multi-Channel Operation aka Surround Sound you comptuer is not at Spec as it states it requires 733MHz G4 QS min, 800MHz G4 QS recommended.
    Message was edited by: lz3broc
    Message was edited by: lz3broc

  • M-Audio Revolution 7.1 PCI Static in speakers

    I have a Blue and White Power Mac G3 with the DayStar 600 mhz G4 processor upgrade, M-Audio Revolution 7.1 surroundsound PCI card and Creative Labs Inspire 7.1 surroundsound speakers and I'm running OS X 10.4.4. My speakers sound fine in stereo only mode but the minute I turn on the surroundsound I get this nasty cracking type of static in the speakers. The surroundsound works and they sound good inbetween the cracking but the cracking just won't go away. I've had these speakers and sound card and processor for about a year or so now and they've been doing this the whole time. I download every driver update that comes along hoping that each one will be the one that fixes the problem but no such luck. Has anybody else out there had this problem? Or had this configuration with no problem? Or better yet, had the problem and found the solution?

    Information taken from M-audio's site about Mac Reqs:
    All Platforms
    • available PCI card slot
    • CD-ROM drive
    Apple Macintosh®
    Minimum Required (for stereo operation)
    • Apple Macintosh® G4*
    • Mac OS 9.2.2 or later; Mac OS X version 10.2.6 or later
    • 256MB RAM
    Minimum Required (for multi-channel operation)
    • Apple Macintosh® G4* 733MHz QS
    • Mac OS 9.2.2 or later; Mac OS X version 10.2.6 or later
    • 256MB RAM
    Recommended
    • Apple Macintosh® G4* 800MHz QS or better
    • DVD-ROM drive
    • Mac OS X version 10.3 or later (Apple DVD Player required or AC-3 or DTS)
    • 512MB RAM
    *CPU Accelerator cards are not supported
    I dont think the Card will fully work with your Machine, because of your BWG3's specs.
    Reading the basic info, for Multi-Channel Operation aka Surround Sound you comptuer is not at Spec as it states it requires 733MHz G4 QS min, 800MHz G4 QS recommended.
    Message was edited by: lz3broc
    Message was edited by: lz3broc

  • Substitute for M-Audio Revolution 7.1

    Hello-I'm planning on purchasing a new 24" 2.8 GHz iMac; one problem I think I'm going to have is somehow connecting the new machine to my Klipsch ProMedia Ultra 5.1 speakers. I presently use an M-Audio Revolution 7.1 in my old G4 to hook up to this speaker system; works great.
    Is there an external box of some kind (other than a home theater receiver and lots of adapters) that will allow me to connect the iMac's digital out mini jack to this speaker set? (It has the traditional three 1/8" cables, to hook up (1) front R/L, (2) surround R/L, and (3) subwoofer).
    I may have to use an audio receiver to do this; but perhaps there's an interface available that I don't know about . . .thanks in advance for any suggestions.

    Well, I guess I can now answer my own question; I've discovered the Griffin FireWave, a single box with FireWire 400 in (and a 2nd FW400 pass-through jack), and 5.1 audio out, via the 3 1/8" stereo jacks that will connect to my speaker set.
    Picked one up on eBay for $60.00. No AC wall wart, either; it supposedly gets enough power from the FW port. I'll post on how well it works once I get it hooked up.

  • Xp 64 m audio revolution drivers?

    any one seen the xp 64 m-audio revolution drivers out there? or anything compatible? It sucks that my xp 64 doesn't have sound

    The m audio sound card is suppose to be better for sound quality. But I guess if I use the spdif it wouldn't make difference. or would it?

  • MPD: ERROR: problems opening audio device

    Since a day, maybe a little more, mpd is troubling me. When I use mpc, I get the error
    ERROR: problems opening audio device
    This is my mpd.conf
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/adriaan/Music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "adriaan"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    group "users"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # mixer_type "hardware" # optional
    # mixer_device "default" # optional
    # mixer_control "PCM" # optional
    # mixer_index "0" # optional
    #audio_output {
    # type "alsa"
    # name "Sound Card"
    # options "dev=dmixer"
    # device "plug:dmix"
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"

    milso wrote:
    type "alsa"
    name "equal"
    device "default"
    format "44100:16:2" # optional
    mixer_device "default" # optional
    mixer_control "PCM" # optional
    mixer_index "0" # optional
    I have mine set to plug:plugequal as I use an equalizer with alsa, but when I set it to default it works fine, try that.
    That didn't work out.
    Mr.Elendig wrote:Tell mpd to be more verbose. And check that mplayer -ao alsa whatever works.
    Here's the output of mpd -v
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    path: path_set_fs_charset: fs charset is: UTF-8
    database: reading DB
    disabling the last.fm playlist plugin because account is not configured
    daemon: opening pid file
    daemon: daemonized!
    daemon: writing pid file
    Doesn't contain anything unusual.
    EDIT: oh, and mplayer -ao alsa works fine.
    Last edited by arthd (2011-02-09 15:14:09)

  • [SOLVED] Problem with MPD and ALSA

    Hello, I'm having problems with mpd using alsa output.
    My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
    But then mpd can't open the alsa device.
    If I tell mpd to autodetect audio, it can't find anything:
    (Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Attempting to detect a pulse audio device
    mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
    and if I set up a basic alsa config...
    audio_output {
    type "alsa"
    name "HDA-Intel"
    It starts, but then playing anything:
    % mpc play
    Caspian - La Cerva
    [paused] #2/10 0:00/4:59 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    mpc.log output:
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
    I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
    Any Ideas?
    Thank you.
    Last edited by xzakox (2011-09-22 20:04:33)

    Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
    Last edited by Mr.Elendig (2011-09-22 11:43:35)

  • Mpd won't follow my configuration ...

    Here is my config ...
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    music_directory "~/music"
    playlist_directory "~/playlists"
    db_file "~/mpd.db"
    log_file "~/mpd.log"
    error_file "~/mpd.error"
    #music_directory "path_to_your_music_collection"
    #playlist_directory "/var/lib/mpd/playlists"
    #db_file "/var/lib/mpd/mpd.db"
    #log_file "/var/log/mpd/mpd.log"
    #error_file "/var/log/mpd/mpd.error"
    # Note: ~ is the home directory of user set in the "user" option
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    #pid_file "~/.mpd/mpd.pid"
    pid_file "/var/run/mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    #state_file "~/.mpd/mpdstate"
    state_file "/var/lib/mpd/mpdstate"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "mpd"
    # The address and port to listen on.
    bind_to_address "127.0.0.1"
    #bind_to_address "any"
    #port "6600"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    #default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    #buffer_before_play "0%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    #filesystem_charset "ISO-8859-1"
    # The encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    ######################### OTHER OPTIONS ########################
    # The metadata types MPD will recognize.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    And when I run mpd with sudo, here's what I get ...
    [mary@myhost ~]$ sudo mpd
    cannot open music_directory "/var/lib/mpd/music/" (config line 5): No such file or directory
    Why is it not looking in ~/music?  The folder this there ...
    Thanks!

    Once you run mpd as root, it uses the /etc/mpd.conf file.  If you run it as a user, it runs the ~/.mpd.conf file.  Here is a copy of my /etc/mpd.conf for reference.
    ######################## REQUIRED PATHS ########################
    #music_directory "~/music"
    #playlist_directory "~/playlists"
    #db_file "~/mpd.db"
    #log_file "~/mpd.log"
    #error_file "~/mpd.error"
    music_directory "~/music"
    playlist_directory "~/.mpd/playlists"
    db_file "~/.mpd/mpd.db"
    log_file "~/.mpd/mpd.log"
    error_file "~/.mpd/mpd.error"
    # Note: ~ is the home directory of user set in the "user" option
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "~/.mpd/mpd.pid"
    #pid_file "/var/run/mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "~/.mpd/mpdstate"
    #state_file "/var/lib/mpd/mpdstate"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "antony"
    # The address and port to listen on.
    bind_to_address "127.0.0.1"
    #bind_to_address "any"
    #port "6600"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    Add mpd to your list of daemons in rc.conf so it starts automatically.

  • Mpd and ncmpcpp

    well I installed ncmpcpp, but when ever I try to run it I get this:
    Cannot connect to mpd: problems connecting to "localhost" on port 6600: Connection refused
    I have no clue what mpd was/is, so I installed it.. and ran "mpd"
    unable to bind port 6600: Address already in use
    maybe MPD is still running?
    I am not familiar with mpd so I dont know what to do... I tried searching around but didnt find anything that solved my problem. Thankshave
    Last edited by k0rfain (2008-09-29 10:09:09)

    i re-edited my conf file,
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    #music_directory "/home/k0rfain/Music"
    #playlist_directory "~/playlists"
    #db_file "~/mpd.db"
    #log_file "~/mpd.log"
    #error_file "~/mpd.error"
    music_directory "/home/k0rfain/Music"
    playlist_directory "~/playlists"
    db_file "~/mpd.db"
    log_file "~/mpd.log"
    error_file "~/mpd.error"
    # Note: ~ is the home directory of user set in the "user" option
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "~/.mpd/mpd.pid"
    pid_file "/var/run/mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "~/.mpd/mpdstate"
    state_file "/var/lib/mpd/mpdstate"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "k0rfain"
    # The address and port to listen on.
    bind_to_address "127.0.0.1"
    bind_to_address "any"
    port "6600"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    #default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    #buffer_before_play "0%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    #filesystem_charset "ISO-8859-1"
    # The encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    ######################### OTHER OPTIONS ########################
    # The metadata types MPD will recognize.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    i also did what kclive18 said, and when i enter /etc/rc.d/mpd start, i get
    :: Starting Music Player Daemon [FAIL]

  • Cannot start mpd as systemd service

    Hi all,
    I have installed mpd. If I run
    mpd
    from a terminal, then everything is normal; I can open
    a client and use mpd. However, if I try to start it as a systemd service I get errors. That is, once I do
    sudo systemctl enable mpd
    and reboot, then
    jorge@flamingo:~$ systemctl status mpd
    ● mpd.service - Music Player Daemon
    Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled)
    Active: failed (Result: signal) since Thu 2014-09-25 22:01:48 EDT; 2min 20s ago
    Main PID: 1647 (code=killed, signal=ABRT)
    Sep 25 22:01:48 flamingo mpd[1647]: ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    Sep 25 22:01:48 flamingo mpd[1647]: ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned erro...rectory
    Sep 25 22:01:48 flamingo mpd[1647]: ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
    Sep 25 22:01:48 flamingo mpd[1647]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 25 22:01:48 flamingo mpd[1647]: alsa_output: Error opening default ALSA device: No such file or directory
    Sep 25 22:01:48 flamingo mpd[1647]: output: Attempting to detect a oss audio device
    Sep 25 22:01:48 flamingo mpd[1647]: oss_output: Error opening OSS device "/dev/dsp": No such file or directory
    Sep 25 22:01:48 flamingo mpd[1647]: oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
    Sep 25 22:01:48 flamingo mpd[1647]: output: Attempting to detect a pulse audio device
    Sep 25 22:01:48 flamingo mpd[1647]: Assertion 'm' failed at pulse/thread-mainloop.c:236, function pa_threaded_mainloo...orting.
    Hint: Some lines were ellipsized, use -l to show in full.
    or,
    jorge@flamingo:~$ sudo systemctl start mpd
    [sudo] password for jorge:
    jorge@flamingo:~$ systemctl status mpd
    ● mpd.service - Music Player Daemon
    Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled)
    Active: failed (Result: signal) since Thu 2014-09-25 22:09:13 EDT; 8s ago
    Process: 2056 ExecStart=/usr/bin/mpd --no-daemon (code=killed, signal=ABRT)
    Main PID: 2056 (code=killed, signal=ABRT)
    Sep 25 22:09:13 flamingo mpd[2056]: ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    Sep 25 22:09:13 flamingo mpd[2056]: ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned erro...rectory
    Sep 25 22:09:13 flamingo mpd[2056]: ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
    Sep 25 22:09:13 flamingo mpd[2056]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 25 22:09:13 flamingo mpd[2056]: alsa_output: Error opening default ALSA device: No such file or directory
    Sep 25 22:09:13 flamingo mpd[2056]: output: Attempting to detect a oss audio device
    Sep 25 22:09:13 flamingo mpd[2056]: oss_output: Error opening OSS device "/dev/dsp": No such file or directory
    Sep 25 22:09:13 flamingo mpd[2056]: oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
    Sep 25 22:09:13 flamingo mpd[2056]: output: Attempting to detect a pulse audio device
    Sep 25 22:09:13 flamingo mpd[2056]: Assertion 'm' failed at pulse/thread-mainloop.c:236, function pa_threaded_mainloo...orting.
    Hint: Some lines were ellipsized, use -l to show in full.
    Here is the mpd config file:
    jorge@flamingo:~$ cat ~/.mpd/mpd.conf
    music_directory "/home/jorge/Multimedia/Audio/Music"
    playlist_directory "/home/jorge/.mpd/playlists"
    db_file "~/.mpd/mpd.db"
    log_file "~/.mpd/mpd.log"
    pid_file "~/.mpd/mpd.pid"
    state_file "~/.mpd/mpdstate"
    audio_output {
    type "alsa"
    name "MPD"
    restore_paused "yes"
    follow_inside_symlinks "no"
    Any ideas what I'm doing wrong here?
    Thanks in advance.
    Last edited by geo909 (2014-09-26 02:12:30)

    Scimmia wrote:Yeah, you're out of date. Update your system and everything should work.
    *facepalm*
    Oh dear.. An update fixed the problem indeed, thank you.
    HilmTye wrote: if you're starting mpd as a system service, then your user's config won't be used
    You're right.. I just read the wiki more carefully. Indeed, I would like to run it for my user, so systemd is not
    the best option for me. But I still have trouble.. The problem is that I can't autostart it the way it mentions
    in the wiki. My mpd files are as follows:
    jorge@flamingo:~$ ls ~/.mpd
    mpd.conf mpd.db mpd.log mpd.pid mpdstate playlists
    I tried this as per the wiki:
    jorge@flamingo:~$ cat ~/.profile
    # MPD daemon start (if no other user instance exists)
    [ ! -s ~/.mpd/mpd.pid ] && mpd
    but it didn't work. mpd was not running after reboot.
    Then I tried /etc/profile:
    jorge@flamingo:~$ cat /etc/profile
    # /etc/profile
    #Set our umask
    umask 022
    # Set our default path
    PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
    export PATH
    # Load profiles from /etc/profile.d
    if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
    test -r "$profile" && . "$profile"
    done
    unset profile
    fi
    # Source global bash config
    if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
    . /etc/bash.bashrc
    fi
    # Termcap is outdated, old, and crusty, kill it.
    unset TERMCAP
    # Man is much better than us at figuring this out
    unset MANPATH
    export GPODDER_HOME="/home/jorge/Applications/Application Data/gpodder"
    # MPD daemon start (if no other user instance exists)
    [ ! -s ~/.mpd/mpd.pid ] && mpd
    but it didn't work either.
    In both cases, if I try to run mpd again from the terminal, I get:
    jorge@flamingo:~$ mpd
    server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    and then mpd works.
    Any ideas on how to startup mpd automatically on boot without systemd?
    Last edited by geo909 (2014-09-26 04:03:15)

  • OSS Problem

    I recently re-installed Arch Linux with OSS instead of ALSA because I had problems with ALSA. OSS seems to detect everything fine, and osstest outputs sound through my speakers and headphones.
    The problem is that I can't get any other app to play sound. It's my first time using OSS ans ossxmix, so I'm confused when I see the buttons. I tried many random things but none make sound come out.
    $ ossinfo
    Version info: OSS 4.1 (b 1052b/200905261644) (0x00040100) GPL
    Platform: Linux/x86_64 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 06:42:43 UTC 2009 (simon-archlinux)
    Number of audio devices: 10
    Number of audio engines: 14
    Number of mixer devices: 1
    Device objects
    0: osscore0 OSS core services
    1: oss_hdaudio0 Intel HD Audio interrupts=170715 (170715)
    HD Audio controller Intel HD Audio
    Vendor ID 0x8086284b
    Subvendor ID 0x107b0690
    Codec 1: Unknown (0x11c11040)
    Codec 2: Unknown (0x111d76b0/0x107b0692)
    2: oss_usb0 USB audio core services
    Mixer devices
    0: High Definition Audio 0x111d76b (Mixer 0 of device object 1)
    Audio devices
    HD Audio play pcm14 /dev/oss/oss_hdaudio0/pcm0 (device index 0)
    HD Audio play pcm15 /dev/oss/oss_hdaudio0/pcm1 (device index 1)
    HD Audio play pcm1 /dev/oss/oss_hdaudio0/pcm2 (device index 2)
    HD Audio play pcm2 /dev/oss/oss_hdaudio0/pcm3 (device index 3)
    HD Audio play pcm3 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
    HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm5 (device index 5)
    HD Audio play pcm5 /dev/oss/oss_hdaudio0/pcm6 (device index 6)
    HD Audio play pcm6 /dev/oss/oss_hdaudio0/pcm7 (device index 7)
    HD Audio rec select3 /dev/oss/oss_hdaudio0/pcmin0 (device index 8)
    HD Audio rec select4 /dev/oss/oss_hdaudio0/pcmin1 (device index 9)
    /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
    A screenshot of my ossxmix: Linky
    Note: You can see that MPD is working properly, but no sound come out.
    Another thing I noticed when doing more tests, it that osstest doesn't always output sound. What I mean is that I run it 2 or 3 times in a row, and it will play sound randomly with no apparent reason. The text output is the same, too... The first time I ran it (after installing and before rebooting), it always worked and switched the sound outpout when I plugged my headphones.
    It seems the reboot broke my sound
    Any help appreciated.
    Update:
    I rebooted again and watched if OSS gave any error message. Apparently, I didn't saw he complained about "Unknown HDA Codec". Where can I get the exact error? What am I missing?
    Last edited by FunkNapkin (2009-06-05 01:23:29)

    $ dmesg | grep HDA
    oss_hdaudio: Unknown HDA codec 0x11c11040
    oss_hdaudio: Unknown HDA codec 0x111d76b0
    oss_hdaudio: Unknown HDA codec 0x11c11040
    oss_hdaudio: Unknown HDA codec 0x111d76b0
    I guess I'll have to google those errors and see what I can find.
    Also, I don't think I'll have to configure the apps to work with OSS, because all my apps show up correctly at the bottom of ossxmix. And I'm not using KDE, so that isn't the problem.
    Edit: Some more info
    $ sudo ossdetect -v
    Detected Intel High Definition Audio (ICH8)
    USB support available in the system, adding USB driver
    Detected Generic USB audio/MIDI device (BETA)
    $ dmesg
    [some stuff]
    oss_hdaudio 0000:00:1b.0: PCI INT A disabled
    oss_hdaudio 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
    oss_hdaudio: Unknown HDA codec 0x11c11040
    oss_hdaudio: Unknown HDA codec 0x111d76b0
    oss_hdaudio: Unknown HDA codec 0x11c11040
    oss_hdaudio: Too many output endpoints for codec 1 (12)
    oss_hdaudio: Unknown HDA codec 0x111d76b0
    Too many output endpoints. Endpoint 8 ignored.
    Too many output endpoints. Endpoint 9 ignored.
    Too many output endpoints. Endpoint 10 ignored.
    Too many output endpoints. Endpoint 11 ignored.
    Too many output endpoints. Endpoint 0 ignored.
    Too many output endpoints. Endpoint 1 ignored.
    Too many output endpoints. Endpoint 2 ignored.
    Too many output endpoints. Endpoint 3 ignored.
    Too many output endpoints. Endpoint 4 ignored.
    Too many output endpoints. Endpoint 5 ignored.
    Too many output endpoints. Endpoint 6 ignored.
    Too many output endpoints. Endpoint 7 ignored.
    Too many output endpoints. Endpoint 8 ignored.
    Too many output endpoints. Endpoint 9 ignored.
    Too many output endpoints. Endpoint 10 ignored.
    Too many output endpoints. Endpoint 11 ignored.
    usbcore: registered new interface driver oss_usb
    Edit 2:
    While googling, I found this mailing list which describe a similar problem, and there is a (posible) fix on the second message. Problem is, I don't know how to try it...
    Last edited by FunkNapkin (2009-06-05 13:28:35)

  • Mpc/gmpc will not update mpd database

    As per thread title. I've installed mpc following the single user setup instructions. All the clients I've tried seem to connect to it normally, but I can't get them to update the database.
    mpc output:
    [jewdozer@OKW ~]$ mpc update / --wait
    Updating DB (#4) ...
    volume:100% repeat: off random: off single: off consume: off
    gmpc appears to update normally, but the files don't show up in the database. ncmpcpp puts the last update at hours ago, presumably when mpd was first started.
    This is my /etc/mpd.conf file:
    [jewdozer@OKW ~]$ cat /etc/mpd.conf
    music_directory "/home/jewdozer/Musik"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/db"
    log_file "/var/log/mpd/mpd.log"
    error_file "/var/lib/mpd/mpd.error"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    The files never show up in the db file, and the log and error files are empty.
    Ideas?
    Last edited by jewdozer (2010-01-22 14:01:26)

    Did you try to change the permissions of the directory or to put the files in your "home"?, for example my config file :
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory "/home/mich/Musique"
    playlist_directory "/home/mich/.mpd/playlists"
    db_file "/home/mich/.mpd/mpd.db"
    log_file "/home/mich/.mpd/mpd.log"
    error_file "/home/mich/.mpd/mpd.error"
    #sticker_file "/home/mich/.mpd/mpd.db"
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "/home/mich/.mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "/home/mich/.mpd/mpd.state"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "mich"
    # The address and port to listen on.
    #bind_to_address "archlinux"
    port "6600"
    # If the address is a path, then a UNIX domain socket will be
    # created instead of listening on a TCP port.
    #bind_to_address "/var/run/mpd/sock"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################### ZEROCONF ###########################
    # If yes, service information will be published with Zeroconf.
    #zeroconf_enabled "yes"
    # The service name to publish. This name should be unique on
    # your local network.
    #zeroconf_name "Music Player"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # use_mmap "yes"
    # PulseAudio
    audio_output {
    type "pulse"
    name "My MPD PulseAudio Output"
    #server "localhost" # optional
    #sink "alsa_output" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    #audio_output {
    # type "jack"
    # name "my jack device"
    # format "44100:16:2"
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # timeout "2" # optional
    # An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this
    # specifies the sample rate converter to use. Possible
    # values can be found in the mpd.conf man page or the
    # libsamplerate documentation.
    #samplerate_converter "Fastest Sinc Interpolator"
    samplerate_converter "Best Sinc Interpolator"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    # Increase this if you hear skipping when changing songs.
    #buffer_before_play "10%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    filesystem_charset "UTF-8"
    # The encoding that ID3v1 tags should be converted from.
    id3v1_encoding "UTF-8"
    ######################### OTHER OPTIONS ########################
    # Try disabling this if you have MP3s which appear to end
    # abruptly. If this solves the problem, it is highly
    # recommended that you fix your MP3s with vbrfix (available from
    # <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point you can re-enable support for gapless MP3 playback.
    #gapless_mp3_playback "yes"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    # A list of tag types that MPD will scan for and make available
    # to clients.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    Last edited by Drexya (2010-01-23 09:09:58)

  • OSS *sometimes* has no sound

    OSS is being really weird for me. When I first boot my system the sound never works. I'll go play with ossxmix a bit but ultimately change nothing, and sometimes it will randomly work, sometimes not. Sometimes I'll run an osstest and it will work and then the next one after does not work at all. Ultimately, really random and weird behavior.
    ossinfo
    Version info: OSS 4.1 (b 1052/200903300132) (0x00040100) GPL
    Platform: Linux/x86_64 2.6.29-ARCH #1 SMP PREEMPT Wed Apr 8 12:39:28 CEST 2009 (igloo)
    Number of audio devices: 6
    Number of audio engines: 10
    Number of mixer devices: 1
    Device objects
    0: osscore0 OSS core services
    1: oss_hdaudio0 Intel HD Audio interrupts=6429 (6429)
    HD Audio controller Intel HD Audio
    Vendor ID 0x8086293e
    Subvendor ID 0x103c3603
    Codec 0: Unknown (0x111d76b2/0x103c3603)
    Codec 2: Unknown (0x10de0006/0x10de0101)
    2: oss_usb0 USB audio core services
    Mixer devices
    0: High Definition Audio 0x111d76b (Mixer 0 of device object 1)
    Audio devices
    HD Audio play pcm1 /dev/oss/oss_hdaudio0/pcm0 (device index 0)
    HD Audio play pcm2 /dev/oss/oss_hdaudio0/pcm1 (device index 1)
    HD Audio play spdifout2 /dev/oss/oss_hdaudio0/spdout0 (device index 2)
    HD Audio play spdifout3 /dev/oss/oss_hdaudio0/spdout1 (device index 3)
    HD Audio rec select3 /dev/oss/oss_hdaudio0/pcmin0 (device index 4)
    HD Audio rec select4 /dev/oss/oss_hdaudio0/pcmin1 (device index 5)
    /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
    /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
    ossmix
    Selected mixer 0/High Definition Audio 0x111d76b2
    Known controls are:
    codec1.jack.fp-black.mode <pcm1|pcm2|mix> (currently pcm1)
    codec1.jack.int-black.mode <pcm1|pcm2|mix> (currently pcm1)
    codec1.jack.int-mic <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
    codec1.jack.black.select5 <spdifout2|select3|select4> (currently select3)
    codec1.record.select3 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
    codec1.record.select3.select1 <fp-mic|mic> (currently mic)
    codec1.record.select3.select31 [<leftvol>:<rightvol>] (currently 22.4:22.4 dB)
    codec1.record.select3.select32 <select1|mix|int-mic> (currently int-mic)
    codec1.record.select4 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
    codec1.record.select4.select2 <fp-mic|mic> (currently fp-mic)
    codec1.record.select4.select41 [<leftvol>:<rightvol>] (currently 22.4:22.4 dB)
    codec1.record.select4.select42 <select2|mix|int-mic> (currently int-mic)
    codec1.misc.pcm11 [<leftvol>:<rightvol>] (currently 77.9:77.9 dB)
    codec1.misc.pcm21 [<leftvol>:<rightvol>] (currently 80.9:80.9 dB)
    codec1.misc.pcm12 [<leftvol>:<rightvol>] (currently 43.4:43.4 dB)
    codec1.misc.pcm22 [<leftvol>:<rightvol>] (currently 40.4:40.4 dB)
    codec1.misc.select1 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
    codec1.misc.select2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    codec1.misc.mix <pcm1|pcm2|select1|select2> (currently pcm2)
    codec1.misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB|mute> (currently -28.-8dB)
    vmix0-enable ON|OFF (currently ON)
    vmix0-rate <decimal value> (currently 48000) (Read-only)
    vmix0-channels <Stereo|Multich> (currently Stereo)
    vmix0-src <Fast|Low|Medium|High|High+|Production|OFF> (currently Fast)
    vmix0-outvol <monovol> (currently 25.0 dB)
    vmix0-invol <monovol> (currently 25.0 dB)
    vmix0.pcm6 [<leftvol>:<rightvol>] (currently 20.8:20.8 dB)
    vmix0.pcm7 [<leftvol>:<rightvol>] (currently 20.8:20.8 dB)
    vmix0.pcm8 [<leftvol>:<rightvol>] (currently 20.4:20.4 dB)
    vmix0.pcm9 [<leftvol>:<rightvol>] (currently 20.4:20.4 dB)
    For example, before I started typing this post it wasn't working. Now it's working fine. Ahhhh!
    If it helps at all, alsa does not have any problems on this system. I'd love to be able to finally get OSS working though.
    Last edited by Statix (2009-04-13 19:06:02)

    I should have asked earlier, but you have blacklisted the soundcore module (which loads Alsa) correct? Or they would race to get the sound card.
    Also,I noticed that your devices are HD Audio and USB. The wiki says that support for usb and hd is experimental (read buggy).
    EDIT: But then again, this website says that Intel HD Audio and Intel AC'97 are both supported. Go figure !
    Last edited by Inxsible (2009-04-13 19:47:03)

  • MPD and Jack

    Hej,
    I am trying hard to get mpd running with jack, but am constantly failing. Starting mpd it says "successfully detected a jack audio device" and everything looks fine, except i cannot play any file. When i try that with mpc i receive an error "Problems opening audio device". In the mpd logfile appears sth similar:
    Oct 24 20:23 : output: Failed to open "default detected output" [jack]: Failed to connect to JACK server
    Oct 24 20:23 : player_thread: problems opening audio device while playing "000 neue 000/Eddie Vedder/Into the wild/01 - Setting Forth.mp3"
    Any ideas on how to solve this?
    I am able to play sounds through jack with aplay, so my .asoundrc should be fine
    thanks in advance

    Yeah, and with the first way (direct mpd-jack-output) there is the problem.
    Mpd starts fine, but if you wanna play any audio over your favourite client (ncmpcpp in my case), a error-msg is written to the log.
    Something like the ones calle posted.
    But ... ... I am going to increase the verbosity level of mpd. *idea* :-)
    EDIT:
    The Result
    Nov 11 14:11 : decoder: audio_format=44100:24:2, seekable=true
    Nov 11 14:11 : output: Failed to open "default" [jack]: Failed to connect to JACK server
    Nov 11 14:11 : player_thread: problems opening audio device while playing "Hidden_-_Song.mp3"
    This is the output with the highest verbosity-level.
    greetz
    The SIghter
    Last edited by sighter (2009-11-11 13:16:20)

  • [solved] I hear audio 1s after playback starts - ALSA & ALC888 S/PDIF

    Hello,
    I run 64bit Arch Linux, my soundcard is a Realtek ALC888 (HDA ATI SB according to alsamixer) and I use ALSA (alsa-lib 1.0.21.a-1).
    The back of my computer looks like this:
    I have a YAMAHA RX-V596RDS AV Receiver connected to my sound output via a TOSLINK (S/PDIF or Optical Cable) connector.
    My alsamixer looks like this (edited to fit small screen):
    I used aadebug to get some info about my setup: output
    I have two problems with my setup:
    1. Whenever I start playback - be it mpd, mplayer, vlc, flash in ff, aqualung or audacity - the playback will start instantly, but I will only start hearing the output when one second has passed. (So I won't hear the first second at all.)
    This also happens when I use the RCA Jack to connect my AV Receiver.
    However, if I unmute "Front" and increase volume for it in alsamixer and connect my headphones to the light green (stereo) jack output (on top left in photo above) and tell audacity to use hw:0,0 ("ALSA: HDA ATI SB: ALC888 Analog") as output, I will hear the sound in my headphones *instantly* when playback starts.
    When I 'mpd next' the same delay of ~1 second will happen. However I noticed that if I pause audio playback sweep (audio editor) and very quickly continue playback, there will be no gap and no 'loss of audio'.
    I suspect, that dmix goes into a stand-by state, whenever audio stops. Can I force dmix to have a longer timout or none at all?
    2. I can't get Audacity to playback audio together with other applications. mpd and mplayer and flash in ff and vlc will play audio at the same time, but audacity won't. If I start audacity while mpd is playing, there won't even be the option to select "hw:0,1", "iec958", "spdif" or "default". If I use any other device (like dmix), it will play using analog (I can hear it in my headphone).
    If I start audacity, then start mpd and then try to playback in audacity (using any of the devices "hw:0,1", "iec958", "spdif" or "default"), I get following error message repeatedly:
    Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1027
    Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1059
    Any one having these problems? Anyone having ideas what the reasons might be?
    Thanks
    Last edited by qubodup (2010-01-11 17:45:19)

    I don't know if this will help but i used to have a similar problem when i switched to musicmanager as my default music player, (i also have the same soundcard)
    When connected to my receiver via optical out there would be a initial delay of around a second everytime when playing a new song, although there was no delay through my laptop speakers.
    What worked for me was adding esd to my daemons array

Maybe you are looking for

  • Has Anyone bought this battery?

    This new Newer Tech battery. Has someone bought it and used it? How does it compare to the original Apple battery.. Use? And fit/finish? https://eshop.macsales.com/item/Newer%20Technology/BAP15AL5000/ I need a new battery or my 1.67 AL PowerBook

  • Problem in event handling of combo box in JTable cell

    Hi, I have a combo box as an editor for a column cells in JTable. I have a event listener for this combo box. When ever I click on the JTable cell whose editor is combo box, I get the following exception, Exception occurred during event dispatching:

  • HT1386 My old computer died can't load it need to delete it off my ipod

    My old computer died and I needtodelete it off my ipod so ican download all content on my new laptop

  • GET_LINE or GET_LINES, how?

    Hi, I need to make stored procedure which will be called from SQLPlus and this procedure have to use input values to insert it into some table. But i have problem. Next code simple doesn't work: SQL> set serveroutput on SQL> declare   2  v_line varch

  • Apps to SD card in Xperia Z

    How can I move applications to my SD card storage in the Xperia tablet Z? I have the 32gb internal memory version and it is 80% full already. I'd like a solution to free some storage memory without having to uninstall my games and apps. I can do it i