epoch1970 wrote: > Followup assuming this was ok. The DAC is Musical Fidelity V-Dac > (original model), AFAIK this is 16/48, usb 1.1, synchronous hardware.> Code: -------------------- > > Prades:~# /usr/local/bin/squeezelite-i386-crossfade -n Prades -b 4096:8192 -d output=debug > [16:55:23.694249] output_init:902 init output > [16:55:23.695126] output_init:905 outputbuf size: 8388608 > [16:55:23.752587] output_init:924 output: default maxrate: 192000 > [16:55:23.752960] output_thread:305 open output device: default > [16:55:23.763644] alsa_open:196 opened device default using format: S32_LE sample rate: 44100 > [16:55:23.764681] alsa_open:247 buffer time: 85328 period count: 4 buffer size: 3763 period size: 940 > [16:56:20.228741] output_thread:466 track start sample rate: 88200 replay_gain: 0 > [16:56:20.228875] output_thread:305 open output device: default > [16:56:20.243111] alsa_open:196 opened device default using format: S32_LE sample rate: 88200 > [16:56:20.244166] alsa_open:247 buffer time: 85328 period count: 4 buffer size: 7526 period size: 1881 > > prades:~# metaflac --list /var/data/audio/Audiofiles/00-HD_Lossless/Stan\ Getz/Supreme\ Jazz/01\ -\ Autum\ N\ Leaves.flac > METADATA block #0 > type: 0 (STREAMINFO) > is last: false > length: 34 > minimum blocksize: 1152 samples > maximum blocksize: 1152 samples > minimum framesize: 322 bytes > maximum framesize: 6038 bytes > sample_rate: 88200 Hz > channels: 2 > bits-per-sample: 24 > total samples: 38899704 > > > prades:~# ps xawu |grep sox > root 1872 0.0 0.2 1772 572 pts/1 S+ 16:58 0:00 grep sox > > prades:~# cat /proc/asound/card0/stream0 > Burr-Brown from TI USB Audio DAC at usb-0000:00:0f.4-2, full s : USB Audio > > Playback: > Status: Running > Interface = 1 > Altset = 1 > URBs = 8 [ 1 1 1 1 1 1 1 1 ] > Packet Size = 192 > Momentary freq = 48000 Hz (0x30.0000) > Interface 1 > Altset 1 > Format: S16_LE > Channels: 2 > Endpoint: 2 OUT (ADAPTIVE) > Rates: 32000, 44100, 48000 > Interface 1 > Altset 2 > Format: S16_LE > Channels: 1 > Endpoint: 2 OUT (ADAPTIVE) > Rates: 32000, 44100, 48000 > > prades:~# cat /proc/asound/card0/pcm0p/sub0/hw_params > access: MMAP_INTERLEAVED > format: S16_LE > subformat: STD > channels: 2 > rate: 48000 (48000/1) > period_size: 1024 > buffer_size: 16384 -------------------- > > > > And now for something slightly different: > Code: -------------------- > > prades:~# /usr/local/bin/squeezelite-i386-crossfade -n Prades -b 4096:8192 -d output=debug -o iec958:CARD=default,DEV=0 > [17:09:24.690674] output_init:902 init output > [17:09:24.691639] output_init:905 outputbuf size: 8388608 > [17:09:24.727432] output_init:924 output: iec958:CARD=default,DEV=0 maxrate: 48000 > [17:09:24.727795] output_thread:305 open output device: iec958:CARD=default,DEV=0 > [17:09:24.731020] alsa_open:196 opened device iec958:CARD=default,DEV=0 using format: S16_LE sample rate: 44100 > [17:09:24.731548] alsa_open:247 buffer time: 20045 period count: 4 buffer size: 884 period size: 221 > [17:09:26.024618] output_thread:466 track start sample rate: 48000 replay_gain: 0 > [17:09:26.024766] output_thread:305 open output device: iec958:CARD=default,DEV=0 > [17:09:26.032277] alsa_open:196 opened device iec958:CARD=default,DEV=0 using format: S16_LE sample rate: 48000 > [17:09:26.032604] alsa_open:247 buffer time: 20000 period count: 4 buffer size: 960 period size: 240 > > prades:~# metaflac --list /var/data/audio/Audiofiles/00-HD_Lossless/Stan\ Getz/Supreme\ Jazz/02\ -\ Billie\'s\ Bounce.flac > METADATA block #0 > type: 0 (STREAMINFO) > is last: false > length: 34 > minimum blocksize: 1152 samples > maximum blocksize: 1152 samples > minimum framesize: 559 bytes > maximum framesize: 6089 bytes > sample_rate: 88200 Hz > channels: 2 > bits-per-sample: 24 > total samples: 60693336 > > > prades:~# ps xawu |grep sox > 110 1932 50.1 0.5 4820 1512 ? R 17:09 1:02 /usr/share/squeezeboxserver/Bin/i386-linux/sox --single-threaded --no-dither --buffer 8192 --input-buffer 4096 -q -t flac /var/data/audio/Audiofiles/00-HD_Lossless/Stan Getz/Supreme Jazz/02 - Billie's Bounce.flac -t flac -C 0 - rate -q 48k > root 1944 0.0 0.2 1772 576 pts/1 S+ 17:11 0:00 grep sox > > prades:~# cat /proc/asound/card0/stream0 > Burr-Brown from TI USB Audio DAC at usb-0000:00:0f.4-2, full s : USB Audio > > Playback: > Status: Running > Interface = 1 > Altset = 1 > URBs = 5 [ 1 1 1 1 1 ] > Packet Size = 192 > Momentary freq = 48000 Hz (0x30.0000) > Interface 1 > Altset 1 > Format: S16_LE > Channels: 2 > Endpoint: 2 OUT (ADAPTIVE) > Rates: 32000, 44100, 48000 > Interface 1 > Altset 2 > Format: S16_LE > Channels: 1 > Endpoint: 2 OUT (ADAPTIVE) > Rates: 32000, 44100, 48000 > > prades:~# cat /proc/asound/card0/pcm0p/sub0/hw_params > access: MMAP_INTERLEAVED > format: S16_LE > subformat: STD > channels: 2 > rate: 48000 (48000/1) > period_size: 240 > buffer_size: 960 -------------------- > > > > I have verified sox starts up on both songs if I play them through an > SB3. Both squeezelite and SB3 seem to catch with the same transcoding > configuration. > > HTH
Thats what I would expect - if you open the device as "default" then the alsa resampling layer is included and so squeezelite reports the max sample rate to the server as 192k. In this case the alsa layer should do the resampling to make it play correctly with your dac. If you open with hw:CARD=X or other related device which does not include the alsa resampling layer then the explicit sample rate and sample size of the dac is reported by squeezelite and the server will do the resampling. Do you get music in both cases? ------------------------------------------------------------------------ Triode's Profile: http://forums.slimdevices.com/member.php?userid=17 View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
