Skip to content

Instantly share code, notes, and snippets.

@andrewdunndev
Created March 10, 2011 14:08
Show Gist options
  • Select an option

  • Save andrewdunndev/864135 to your computer and use it in GitHub Desktop.

Select an option

Save andrewdunndev/864135 to your computer and use it in GitHub Desktop.
storrgie@enceladus:/proc/asound/N2$ cat stream0
NuForce NuForce µDAC 2 at usb-0000:00:1d.7-6.3, full speed : USB Audio
Playback:
Status: Running
Interface = 3
Altset = 2
URBs = 3 [ 8 8 8 ]
Packet Size = 582
Momentary freq = 96000 Hz (0x60.0000)
Interface 3
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 3 OUT (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Interface 3
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 3 OUT (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 2 IN (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Interface 2
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 2 IN (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
@andrewdunndev
Copy link
Author

storrgie@enceladus:/proc/asound/N2/pcm0p/sub0$ cat hw_params
access: RW_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 12000
buffer_size: 48000

@andrewdunndev
Copy link
Author

Mar 10 09:12 : playlist: play 75:"HRx/1-01 Gymnopedie No. 1-a.flac"
Mar 10 09:12 : decoder_thread: clearing mixramp tags
Mar 10 09:12 : decoder_control: mixramp_start = NULL
Mar 10 09:12 : decoder_control: mixramp_prev_end = NULL
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : playlist: queue song 76:"HRx/1-07 Taint So-a.flac"
Mar 10 09:12 : client: [1] process command "status"
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : client: [1] process command "idle"
Mar 10 09:12 : client: [1] command returned 1
Mar 10 09:12 : client: [1] process command "playlistid "75""
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : decoder: audio_format=176400:24:2, seekable=true
Mar 10 09:12 : client: [1] process command "playlistid "76""
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : client: [1] process command "playlistid "76""
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : client: [1] process command "status"
Mar 10 09:12 : output: closed plugin=alsa name="NuForce uDAC"
Mar 10 09:12 : alsa: buffer: size=192..174762 time=2000..1820438
Mar 10 09:12 : alsa: period: size=96..87381 time=1000..910219
Mar 10 09:12 : alsa: default period_time = buffer_time/4 = 500000/4 = 125000
Mar 10 09:12 : alsa: buffer_size=48000 period_size=12000
Mar 10 09:12 : output: opened plugin=alsa name="NuForce uDAC" audio_format=96000:24_3:2
Mar 10 09:12 : output: converting from 176400:24:2
No protocol specified
xcb_connection_has_error() returned true
Mar 10 09:12 : Failed to open mixer for 'NuForce uDAC': no such mixer control: PCM
Mar 10 09:12 : client: [1] command returned 0
Mar 10 09:12 : pcm: selecting samplerate converter "Fastest Sinc Interpolator"
Mar 10 09:12 : pcm: setting samplerate conversion ratio to 0.54

@andrewdunndev
Copy link
Author

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 "NuForce uDAC"
device "hw:1,0" # optional

format "44100:16:2" # optional

mixer_type "hardware" # optional

mixer_device "default" # optional

mixer_control "PCM" # optional

mixer_index "0" # optional

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment