epoch1970 wrote: 
> I think I've seen aplay complain and prefer playing too fast. I'll come
> back to you w/ a traced example.
I ran the player with debug output.

Code:
--------------------
    myplayer start
  Listening on 172.17.255.45... pid 1506 [/var/run/squeezelite.pid]
  Executed [nice -n -5 /usr/local/bin/squeezelite-i386 -n Prades -b 16384:16384 
 -o iec958:CARD=DAC,DEV=0 -a 8:4::1 -d output=debug -f /var/log/squeezelite.log 
-z 172.17.255.45]
--------------------

Then played an 88.2 record (player stays silent), then set the player
on/off a few times trying to play various other files (44.1, 96). The
player stays silent.
Here is is top and the bottom of the log file. I find it funny that, at
the bottom, squeezelite believes I am asking for a file with sample rate
88200. I was trying to play a regular CD rip.

Code:
--------------------
    [18:04:01.944083] output_init:1265 init output
  [18:04:01.945023] output_init:1268 outputbuf size: 16777216
  [18:04:01.945162] output_init:1298 requested buffer_time: 8000 period_count: 
4 format: any mmap: 1
  [18:04:02.009860] output_init:1320 output: iec958:CARD=DAC,DEV=0 maxrate: 
96000
  [18:04:02.010177] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:04:02.015022] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 44100 mmap: 1
  [18:04:02.015345] alsa_open:305 buffer time: 7981 period count: 4 buffer 
size: 352 period size: 88
  [18:04:02.105363] output_thread:647 disabling output
  [18:04:19.634074] output_flush:1345 flush output buffer
  [18:04:19.636205] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:04:19.639774] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 44100 mmap: 1
  [18:04:19.640032] alsa_open:305 buffer time: 7981 period count: 4 buffer 
size: 352 period size: 88
  [18:04:20.784531] output_thread:748 track start sample rate: 88200 
replay_gain: 0
  [18:04:20.784714] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:04:20.795022] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 88200 mmap: 1
  [18:04:20.795357] alsa_open:288 unable to set buffer time Invalid argument
  [18:04:25.801177] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:04:25.804675] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 88200 mmap: 1
  [18:04:25.804959] alsa_open:288 unable to set buffer time Invalid argument
  [18:04:30.811093] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:04:30.814601] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 88200 mmap: 1
  [18:04:30.814883] alsa_open:288 unable to set buffer time Invalid argument
  …
  [18:05:32.181582] output_flush:1345 flush output buffer
  [18:05:35.939946] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:05:35.943478] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 88200 mmap: 1
  [18:05:35.943761] alsa_open:288 unable to set buffer time Invalid argument
  [18:05:40.949858] output_thread:562 open output device: iec958:CARD=DAC,DEV=0
  [18:05:40.953373] alsa_open:257 opened device iec958:CARD=DAC,DEV=0 using 
format: S24_3LE sample rate: 88200 mmap: 1
  [18:05:40.953647] alsa_open:288 unable to set buffer time Invalid argument
  [18:05:42.706877] output_close:1357 close output
--------------------

BTW, I have no idea why Alsa doesn't want to resample anymore/with this
DAC. This is what I get with aplay:
Code:
--------------------
    prades:/var/data/audio/Audiofiles/SAMPLER# flac -dcs HD-2488.flac |aplay -v 
-D iec958:CARD=DAC,DEV=0 
  Playing WAVE 'stdin' : Signed 24 bit Little Endian in 3bytes, Rate 88200 Hz, 
Stereo
  Warning: rate is not accurate (requested = 88200Hz, got = 96000Hz)
  please, try the plug plugin 
  Hardware PCM card 0 'HiFimeDIY DAC' device 0 subdevice 0
  Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S24_3LE
  subformat    : STD
  channels     : 2
  rate         : 96000
  exact rate   : 96000 (96000/1)
  msbits       : 24
  buffer_size  : 48000
  period_size  : 12000
  period_time  : 125000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 12000
  period_event : 0
  start_threshold  : 48000
  stop_threshold   : 48000
  silence_threshold: 0
  silence_size : 0
  boundary     : 1572864000
  appl_ptr     : 0
  hw_ptr       : 0
  
--------------------


------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to