Code:
--------------------
    
  [01:31:25.308591] output_init_common:375 supported rates: 192000 96000 48000 
44100
  
--------------------


88200 not natively supported.... Don't specify '-u E' and play 88k2
track....


Code:
--------------------
    
  [01:33:42.932823] _output_frames:122 track start sample rate: 88200 
replay_gain: 0
  [01:33:42.932875] output_thread:464 open output device: hw:CARD=SB,DEV=0
  [01:33:42.933469] alsa_open:212 reopening device hw:CARD=SB,DEV=0 in plug 
mode as plughw:CARD=SB,DEV=0 for resampling
  [01:33:42.934545] alsa_open:233 opened device plughw:CARD=SB,DEV=0 using 
format: S32_LE sample rate: 88200 mmap: 1
  [01:33:42.935014] alsa_open:312 buffer: 40 period: 4 -> buffer size: 3528 
period size: 882
  
--------------------


Ok, uses plughw and ALSA resample. (ALSA re-samples 88k2 to 96k.) 

Now with '-u E' on cmd line...


Code:
--------------------
    
  [01:34:47.268715] resample_init:339 resampling sync recipe: 0x04, flags: 
0x00, scale: 0.89, precision: 0.0, passband_end: 0.00000, stopband_begin: 
0.00000, phase_response: -1.0
  [01:34:47.288628] codec_open:211 codec open: 'f'
  [01:34:47.288719] stream_file:316 opening local file: 
/storage/music/lossless/Rebecca_Pidgeon/The_Raven_24_88/1-Kalerka.flac
  [01:34:48.079766] write_cb:116 setting track_start
  [01:34:48.079827] resample_newstream:178 resampling from 88200 -> 96000
  [01:34:48.079851] resample_newstream:199 resampling with 
soxr_quality_spec_t[precision: 20.0, passband_end: 0.913628, stopband_begin: 
1.000000, phase_response: 50.0, flags: 0x00], soxr_io_spec_t[scale: 0.89]
  [01:34:48.081008] process_newstream:123 processing: active
  [01:34:48.081033] process_newstream:144 creating process buf in frames: 12800
  [01:34:48.081061] process_newstream:151 creating process buf out frames: 15325
  [01:34:48.090160] _output_frames:59 start buffer frames: 34804
  [01:34:48.090270] _output_frames:122 track start sample rate: 96000 
replay_gain: 0
  [01:34:48.090303] output_thread:464 open output device: hw:CARD=SB,DEV=0
  [01:34:48.090834] alsa_open:233 opened device hw:CARD=SB,DEV=0 using format: 
S32_LE sample rate: 96000 mmap: 1
  [01:34:48.090896] alsa_open:312 buffer: 40 period: 4 -> buffer size: 3840 
period size: 960
  
--------------------


OK, result is re-sample 88k2 to 96k via soxr.... Not looked at the your
code yet to see what the logic is. Choose the closest possible supported
sample rate to the requested sample rate?


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

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

Reply via email to