vortexbox.org

06 Nov 08 Forum

You must be logged in to post Login Register

Search Forums:


 






Digital Volume Control – Best Practice

UserPost

10:58 pm
March 6, 2010


sonorejr

Fl

Member

posts 56

Post edited 5:10 am – March 7, 2010 by sonorejr
Post edited 5:11 am – March 7, 2010 by sonorejr
Post edited 5:15 am – March 7, 2010 by sonorejr


Vortexbox Player (and most other MPD clients) allow you to contol volume digitally. When playing back ripped cds in 16/44.1 it's best not to employ digital volume control as you drop 8 bits of data. The solution is to add 8 bits in the first place so nothing is lost when digital volume control is employed. MPD can do this and it's pretty easy to do without much cpu usage. Further upsampling may be cpu intensive. Also, keep in mind that a 16 bit dac may have an issue with this change. The old saying applies…trust, but verify!

If you want to try it out add the following to the mpd configuration file in your output section between { }:

format "*:24:*"
mixer_type      "software"

Then add add the following to the mpd configuration file outside of the output section:
samplerate_converter "Best Sinc Interpolator"

sonorejr

4:49 pm
March 8, 2010


donberryman

Member

posts 17

Please pardon my ignorance, but I have two questions:


Where is the mpd configuration file?


Will this work with the Audio Advantage Micro USB Sound Card connected to teh VBA?


Thanks

7:07 pm
March 8, 2010


sonorejr

Fl

Member

posts 56

donberryman, do you have the dac up and running? FYI when you have the computer volume sit to max it will send a 24 bit signal to your dac. If you have a 16 bit dac it will not work. So if it works will depends on your dac.


sonorejr

7:32 pm
March 8, 2010


Ron Olsen

Boulder, CO

Member

posts 651

donberryman said:

Where is the mpd configuration file?

/etc/vortexbox-player/mpd0.conf

6:44 pm
March 9, 2010


donberryman

Member

posts 17

Thanks.

I don't know if my DAC is 16 or 24 bits,, so I'll give it a try when I get home tonight. I assume that since I am sending a digital signal to my reciever, that that is where my DAC resides. S/PDIF is either a 20 or 24bit

6:57 pm
March 9, 2010


donberryman

Member

posts 17

looking /etc/vortexbox-player/mpd0.conf, the contents are:

# Created by VortexBox on February 10, 2010, 4:59 pm
# If you edit this file it will be over written the next time you make changes in the GUI.
#
music_directory  "/storage/music/flac"
playlist_directory  "/var/lib/mpd/playlists"
db_file  "/var/lib/mpd/database"
log_file  "/var/log/mpd.log"
pid_file  "/var/lib/mpd/pid"
state_file  "/var/lib/mpd/state"
sticker_file  "/var/lib/mpd/sticker.sql"
port  "6600"
zeroconf_enabled  "no"


I don't see any 'output section between:{ }'

What is the syntax I need for adding an 'output section'?


7:09 pm
March 9, 2010


sonorejr

Fl

Member

posts 56

donberryman, in the web gui click on the second to the last icon (speaker with vortexbox icon) and let me know each name you see and the corresponding audio device. Just the stuff under the green bar!


sonorejr 

7:41 pm
March 9, 2010


donberryman

Member

posts 17

sonorejr

name VortexBox Player

mac adress 00:04:00:00:00:01

audio device Default


ALSA device list

 0 [default        ]: USB-Audio - USB Sound Device        
                      C-Media INC. USB Sound Device         at usb-0000:00:1d.0-2, full speed
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfea38000 irq 16

List of audio device ports

  2:        : timer
  3:        : sequencer
  4: [ 0- 0]: digital audio playback
  5: [ 0]   : control
  6: [ 1- 2]: digital audio capture
  7: [ 1- 0]: digital audio playback
  8: [ 1- 0]: digital audio capture
  9: [ 1- 0]: hardware dependent
 10: [ 1]   : control


8:46 pm
March 9, 2010


Andrew

Admin

posts 1624

First you need to define your device. Don't use default. Put "hw0,0″ in as your device. The tool tips give you more info on this.


7:58 pm
March 9, 2010


sonorejr

Fl

Member

posts 56

Post edited 2:00 am – March 10, 2010 by sonorejr


donberryman, replace default with hw:0,0 and submit. The open the mpd0.conf file again and it should look like this:

music_directory  "/storage/music/flac"
playlist_directory  "/var/lib/mpd/playlists"
db_file  "/var/lib/mpd/database"
log_file  "/var/log/mpd.log"
pid_file  "/var/lib/mpd/pid"
state_file  "/var/lib/mpd/state"
sticker_file  "/var/lib/mpd/sticker.sql"
port  "6600″
zeroconf_enabled  "no"

audio_output {
 type  "alsa"
 name  "vortexbox Player"
 device  "hw:0,0″
}

 modify it to look like this:

music_directory  "/storage/music/flac"
playlist_directory  "/var/lib/mpd/playlists"
db_file  "/var/lib/mpd/database"
log_file  "/var/log/mpd.log"
pid_file  "/var/lib/mpd/pid"
state_file  "/var/lib/mpd/state"
sticker_file  "/var/lib/mpd/sticker.sql"
port  "6600″
zeroconf_enabled  "no"

samplerate_converter "Best Sinc Interpolator"

audio_output {
 type  "alsa"
 name  "vortexbox Player"
 device  "hw:0,0″
format "*:24:*"
mixer_type      "software"
}

save the conf file and restart the unit.


sonorejr

7:59 pm
March 9, 2010


donberryman

Member

posts 17

Thanks,


Now I have added the new items and my conf file is

# Created by VortexBox on March 9, 2010, 6:54 pm
# If you edit this file it will be over written the next time you make changes in the GUI.
#
music_directory  "/storage/music/flac"
playlist_directory  "/var/lib/mpd/playlists"
db_file  "/var/lib/mpd/database"
log_file  "/var/log/mpd.log"
pid_file  "/var/lib/mpd/pid"
state_file  "/var/lib/mpd/state"
sticker_file  "/var/lib/mpd/sticker.sql"
port  "6600"
zeroconf_enabled  "no"
samplerate_converter "Best Sinc Interpolator"

audio_output {
        type            "alsa"
        name            "VortexBox Player"
        device          "hw0,0"
        mixer_type      "software"
        format "*:24:*"
        mixer_type      "software"
}

8:00 pm
March 9, 2010


donberryman

Member

posts 17

Music stopped, I will reboot the system

8:02 pm
March 9, 2010


sonorejr

Fl

Member

posts 56

This is me just me being picky, but you have  

mixer_type      "software"

twice:)


sonorejr 

8:08 pm
March 9, 2010


donberryman

Member

posts 17

Now there is no sound at all :-(

8:12 pm
March 9, 2010


donberryman

Member

posts 17

remoced the extra – mixer_type      "software"

and rebooted again


still silent


8:23 pm
March 9, 2010


sonorejr

Fl

Member

posts 56

donberryman, in the web gui click on the second to the last icon again and see if it still looks like this:

 

ALSA device list

 0 [default        ]: USB-Audio - USB Sound Device        
                      C-Media INC. USB Sound Device         at usb-0000:00:1d.0-2, full speed

 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfea38000 irq 16


and let me know


sonorejr 

8:50 pm
March 9, 2010


donberryman

Member

posts 17

Yes:

ALSA device list

 0 [default        ]: USB-Audio - USB Sound Device        
                      C-Media INC. USB Sound Device         at usb-0000:00:1d.0-2, full speed
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfea38000 irq 16

9:03 pm
March 9, 2010


donberryman

Member

posts 17

This just dosen't seem to work with work with the Audio Advantage Micro USB Sound Card connected to the Vortex Box appliance. I revert to my old conf file tomorrow and live without volume control until this is resolved.

Thanks for all the help.


PS – if anyone has this working with this configuration, pleas let me know how you did it

8:00 am
March 10, 2010


sonorejr

Fl

Member

posts 56

donberryman: you have an error in the mpd0.conf file…

you have

device          "hw0,0″

it should be

device          "hw:0,0″


Also, to save you time don't reboot…just enter the following at command line

service vortexbox-player stop

service vortexbox-player start


sonorejr


9:18 am
March 10, 2010


donberryman

Member

posts 17

Thanks – it works!


About the vortexbox.org forum

Most Users Ever Online:

34


Currently Online:

maxtorm

14 Guests

Forum Stats:

Groups: 1

Forums: 4

Topics: 1337

Posts: 7526

Membership:

There are 772 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

Ron Olsen – 651

HalfBit – 315

jistirling – 226

socistep – 187

JimG – 142

wizardofoz – 133

Administrators: Andrew (1624 Posts)




Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • PDF
  • Propeller
  • Technorati
  • Twitter