Linux Audio the way to go!? - Page 95 - diyAudio
Go Back   Home > Forums > Source & Line > PC Based

PC Based Computer music servers, crossovers, and equalization

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 25th February 2009, 06:23 AM   #941
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
Default 24 bit MPD

Here is the version info

pds@MusicServer:~$ mpd --version
mpd (MPD: Music Player Daemon) 0.14.2

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Supported formats:

mp3 mp2 ogg oga ogg oga flac wav au aiff aif aac m4a mp4 wma asf wmv mpeg mpg avi vob mov qt swf rm swf mp1 mp2 mp3 mp4 m4a flac ogg wav au aiff aif ac3 aac mpc ape tta

Supported outputs:

null fifo alsa oss pulse







Here is my asound.conf
Code:
asym_spdif {
         type asym
         playback.pcm "plughw:0,1"
         capture.pcm "plughw:0" } 
pcm.!default asym_spdif
And the relevant section of mpd.conf

Code:
audio_output {
         type                    "alsa"
         name                    "Juli@"
         device                  "plughw:0,1"
# optional         auto_
resample           "no"   # this is ALSA telling not to touch the stream }
How do I enable debug? I'll be happy to post any info.
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 25th February 2009, 06:56 AM   #942
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Hi there.

Install the git version. Checkout my MPD Wiki. I describe over there how to install MPD from git sources. It should be really easy going.
The current MPD git version is 0.15-git.

If something fails just reinstall the repository packages.

Good luck
  Reply With Quote
Old 27th February 2009, 02:26 PM   #943
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
I built MPD from git and it still reports version 0.14.2 .

How do I enable debug?
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 27th February 2009, 04:01 PM   #944
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Hi there.

Debugging is IMO not appropriate at this stage. I just updated my source tree with git pull. Everything seems to be fine.

1. Checkout the "Makefile" in the source-dir. "grep 0.15 Makefile" If you see 0.15~git the checkout went OK. If this says 0.14-something, something went wrong with the git checkout. You might want to try first " git pull" for an
update and then "git checkout master" to switch to the master branch.
"git tag" will show you the official releases which you can also checkout.
0.15~git it is not in there - it is "master"!

Don't forget the "make clean" before you start the build process.

2. Did you check, if you have more then one mpd binary in the system?
If you don't set the --prefix=/usr properly on autogen.sh , you might end up with a new binary
in /usr/local/bin and the original in /usr/bin . This way you'd always start the old binary in
/usr/bin .
Try also "sudo find / -name "mpd" -print" to find multiple mpd binaries - delete them afterwards.

Cheers
  Reply With Quote
Old 27th February 2009, 04:10 PM   #945
diyAudio Member
 
Onvinyl's Avatar
 
Join Date: Aug 2002
Location: Germany
Excellent advices as always, Klaus!

Rüdiger
__________________
"I can feel what's going on inside a piece of electronic equipment. I have a sense that I know what's going on inside the transistors." Robert Moog
  Reply With Quote
Old 27th February 2009, 05:35 PM   #946
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
I tried it again and was very careful about the steps. I still have the old one starting. The new binary is in usr/bin, the old one in usr/local/bin. Could that be the problem? Should I copy the new one to usr/local/bin? I want to be careful I don't trash the system accidentally.
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 27th February 2009, 05:51 PM   #947
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
I took a chance and copied the new version to usr/local/bin and its working. However I'm still getting 16 bit playback. Any suggestions? Could something be enabled in the setup that is causing this? Some library that can't process 24 bit audio correctly?
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 28th February 2009, 05:42 PM   #948
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally posted by 1audio
I took a chance and copied the new version to usr/local/bin and its working. However I'm still getting 16 bit playback. Any suggestions? Could something be enabled in the setup that is causing this? Some library that can't process 24 bit audio correctly?
OK. One step further!

I guess that on "mpd --version" you'll see a "0.15~git " somewhere ?!?!
I also guess that you ran a "mpd --kill" to kill the old deamon.

Let's checkout further potential configuration problems.

Your config for the 24/96 output looks similar to below I guess:

audio_output {
type "alsa"
name "M-Audio-Transit-hw 96/24"
device "hw:1,0" # optional
format "96000:24:2" # optional
auto_resample "no"
}


And finally your 24bit output should also be activated!!!
(You can do it with mpc or e.g. Minion: To install mpc: "sudo apt-get install mpc")

Type "mpc outputs"

Now you should see all outputs as configured in /etc/mpd.conf
with a leading index number ( called x and y below)

with

mpc disable <x> or
mpc enable <y>

You can control (enable/disable) the outputs

You need to activate the 24bit output and you need to disable the 16bit output in case both entries still exist in mpd.conf

Let us know if this solved your problem.

Cheers
  Reply With Quote
Old 28th February 2009, 06:15 PM   #949
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
I discovered the following this morning-
wave files at higher than 48 seem to be truncated. Wave files at 48 or 44 do not. BUT FLAC files are all treated properly even at 176.4 KHz I get the full 24 bits. I will do some more research later as well as forward the other details. I did build from GIT successfully.

I'm trying to make sure the file is sent out at its native rate and let the DAC (a BADA in this case) handle sample rate and level conversions.

Using brutefir etc. is for later with a different implementation.

#
audio_output {
type "alsa"
name "Juli@"
device "plughw:0,1" # optional
auto_resample "no" # this is ALSA telling not to touch the stream
}
#





pds@MusicServer:~$ mpd --version
mpd (MPD: Music Player Daemon) 0.15~git

Copyright (C) 2003-2007 Warren Dukes
<warren.dukes@gmail.com>
Copyright (C) 2008 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Supported formats:

mp3 mp2 ogg oga ogg oga flac wav au aiff aif aac m4a mp4 wv 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve

Supported decoders:

mad vorbis oggflac flac audiofile faad mp4 wavpack ffmpeg

Supported outputs:

null fifo alsa oss
pds@MusicServer:~$
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 1st March 2009, 04:09 AM   #950
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
Blog Entries: 3
Further checking suggests something isn't working right between the wav library and MPD. WAV files in 24 bits all get truncated to 16 bits it seems. However FLAC files are played correctly. I will try to make a short AIFF file and see if that works right. My guess from what I'm seeing is some internal problem or a problem with the library that has the wave routines, which looks to be libao. Interesting that it isn't recommended under dependencies with ALSA but nothing else is listed for wave support.

I'll make note of these results on the MPD forum.
__________________
Demian Martin
Product Design Services
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



New To Site? Need Help?

All times are GMT. The time now is 09:54 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2