Now here is something for the Squeezelite experts:

I have here the log what happens when Squeezelite plays a 48 kHz too
slowly (I reenabled the mp3 codec in the Squeezlite settings for that):


Code:
--------------------
    
  [01:53:10.304747] codec_open:265 codec open: 'm'
  [01:53:10.304764] codec_open:283 closing codec: 'a'
  [01:53:10.304855] _tcp_connect:486 connecting to 192.168.0.161:9000
  [01:53:10.305040] stream_sock:577 header: GET 
/stream.mp3?player=b8:27:eb:74:ea:41 HTTP/1.0
  
  
  [01:53:10.305059] sendSTAT:189 STAT: STMc
  [01:53:10.305098] process_strm:377 set fade mode: 0
  [01:53:10.305136] process:521 audg
  [01:53:10.305150] process_audg:433 audg gainL: 5120 gainR: 5120 adjust: 0
  [01:53:10.305165] set_volume:233 setting internal gain left: 65536 right: 
65536
  [01:53:10.695850] stream_thread:247 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.1.1 - 1610364019)
  Connection: close
  Content-Type: audio/mpeg
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [01:53:10.695964] sendRESP:220 RESP
  [01:53:10.767566] mad_decode:232 mad_frame_decode error: bad main_data_begin 
pointer
  [01:53:10.767941] mad_decode:244 setting track_start
  [01:53:10.767977] mad_decode:273 gapless: skipping 529 frames at start
  [01:53:10.776657] _output_frames:64 start buffer frames: 28271
  [01:53:10.776740] _output_frames:149 track start sample rate: 44100 
replay_gain: 0
  [01:53:10.778614] sendSTAT:189 STAT: STMs
  [01:53:10.778753] sendSTAT:189 STAT: STMt
  [01:53:10.786830] output_thread:687 open output device: sysdefault:CARD=ALSA
  [01:53:10.790258] alsa_open:351 opening device at: 44100
  [01:53:10.792448] alsa_open:422 opened device sysdefault:CARD=ALSA using 
format: S32_LE sample rate: 44100 mmap: 1
  [01:53:10.793086] alsa_open:513 buffer: 80 period: 4 -> buffer size: 3536 
period size: 884
  [01:53:11.779859] sendSTAT:189 STAT: STMt
  [01:53:12.001033] process:521 strm
  [01:53:12.001122] process_strm:274 strm command t
  [01:53:12.001156] sendSTAT:189 STAT: STMt
  
  [01:53:21.007184] sendSTAT:189 STAT: STMt
  
  
--------------------


It seems as if it has a decode error at the start and then recognizes
the sample rate wrongly. Thus it opens ALSA with 44.1kHz

In contrast, for the aac, it correctly recognizes the sample rate and
therefore also opens ALSA with 48kHz:


Code:
--------------------
    
  [01:52:07.241529] _tcp_connect:486 connecting to 192.168.0.161:9000
  [01:52:07.241715] stream_sock:577 header: GET 
/stream.mp3?player=b8:27:eb:74:ea:41 HTTP/1.0
  
  
  [01:52:07.241734] sendSTAT:189 STAT: STMc
  [01:52:07.241777] process_strm:377 set fade mode: 0
  [01:52:07.241817] process:521 audg
  [01:52:07.241832] process_audg:433 audg gainL: 5120 gainR: 5120 adjust: 0
  [01:52:07.241846] set_volume:233 setting internal gain left: 65536 right: 
65536
  [01:52:07.247271] process:521 strm
  [01:52:07.247327] process_strm:274 strm command t
  [01:52:07.247344] sendSTAT:189 STAT: STMt
  [01:52:07.332506] stream_thread:247 headers: len: 490
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.1.1 - 1610364019)
  Connection: close
  Content-Type: audio/aac
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [01:52:07.332671] sendRESP:220 RESP
  [01:52:07.377480] process:521 strm
  [01:52:07.377543] process_strm:274 strm command t
  [01:52:07.377561] sendSTAT:189 STAT: STMt
  [01:52:07.682540] process:521 strm
  [01:52:07.682634] process_strm:274 strm command t
  [01:52:07.682670] sendSTAT:189 STAT: STMt
  [01:52:07.987431] process:521 strm
  [01:52:07.987524] process_strm:274 strm command t
  [01:52:07.987558] sendSTAT:189 STAT: STMt
  [01:52:08.292152] process:521 strm
  [01:52:08.292245] process_strm:274 strm command t
  [01:52:08.292282] sendSTAT:189 STAT: STMt
  [01:52:08.597032] process:521 strm
  [01:52:08.597124] process_strm:274 strm command t
  [01:52:08.597159] sendSTAT:189 STAT: STMt
  [01:52:08.901677] process:521 strm
  [01:52:08.901775] process_strm:274 strm command t
  [01:52:08.901808] sendSTAT:189 STAT: STMt
  [01:52:09.206823] process:521 strm
  [01:52:09.206921] process_strm:274 strm command t
  [01:52:09.206955] sendSTAT:189 STAT: STMt
  [01:52:09.511378] process:521 strm
  [01:52:09.511475] process_strm:274 strm command t
  [01:52:09.511508] sendSTAT:189 STAT: STMt
  [01:52:09.586217] faad_decode:373 samplerate: 48000 channels: 2
  [01:52:09.586309] faad_decode:378 setting track_start
  [01:52:09.606826] _output_frames:64 start buffer frames: 8192
  [01:52:09.606944] _output_frames:149 track start sample rate: 48000 
replay_gain: 0
  [01:52:09.617003] output_thread:687 open output device: sysdefault:CARD=ALSA
  [01:52:09.623358] alsa_open:351 opening device at: 48000
  [01:52:09.625428] alsa_open:422 opened device sysdefault:CARD=ALSA using 
format: S32_LE sample rate: 48000 mmap: 1
  [01:52:09.625850] alsa_open:513 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [01:52:10.136287] sendSTAT:189 STAT: STMs
  [01:52:10.136480] sendSTAT:189 STAT: STMt
  [01:52:10.136587] process:521 strm
  [01:52:10.136604] process_strm:274 strm command t
  [01:52:10.136620] sendSTAT:189 STAT: STMt
  [01:52:10.136679] process:521 strm
  [01:52:10.136954] process_strm:274 strm command t
  [01:52:10.136970] sendSTAT:189 STAT: STMt
  [01:52:11.138085] sendSTAT:189 STAT: STMt
  
  
--------------------


------------------------------------------------------------------------
schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to