slartibartfast wrote: 
> I am choosing a snd-aloop loopback hw:3,0,0 as the output device for
> Squeezelite. I selected it in the Squeezelite settings file to
> temporarily replace my Topping E30. I noticed in piCorePlayer the bit
> depth is not normally specified so does that mean the output bit depth
> is automatically the same as the original file?
> Is volume of a 16 bit file performed at 24 bit like hardware
> Squeezeboxes?
> 
> This is the command I used to save it
> ffmpeg -f alsa -acodec pcm_s32le -channels 2 -sample_rate 44100 -i
> hw:3,1,0 fromFLAC.wav
> so I specified a sample rate but no bit depth so from your reply it
> would default to 16 bit. I originally wanted 16 bit so I could compare
> my original 16 bit FLAC file to Squeezelite output directly and show it
> was bit perfect. Now I am comparing different volume levels I thought I
> might get better results saving the output at 24 bits.
> Deltawave correlates the two waveforms correcting for amplitude and the
> 16 bit waveform looks very blocky at 10% volume [emoji1787]
> 
> Sent from my Pixel 3a using Tapatalk

Squeezelite uses the largest integer format that the device supports and
pads the unused upper bits with zeroes.
For example, alsacap reports the following for my loopback device.


Code:
--------------------
    Card 2, ID `Loopback', name `Loopback'
  Device 0, ID `Loopback PCM', name `Loopback PCM', 8 subdevices (7 available)
  1..32 channels, sampling rate 8000..192000 Hz
  Sample formats: S16_LE, S16_BE, S32_LE, S32_BE, FLOAT_LE, FLOAT_BE
--------------------


squeezelite opens the device with S32_LE


Code:
--------------------
    squeezelite -o hw:CARD=Loopback -d all=info
  [06:49:21.605652] alsa_open:425 opened device hw:CARD=Loopback using format: 
S32_LE sample rate: 44100 mmap: 1
  [06:49:21.605697] alsa_open:516 buffer: 40 period: 4 -> buffer size: 1764 
period size: 441
--------------------


squeezelite will use the digitial volume of the device if supported and
you specify the control with -V.  The device is often named PCM.


Code:
--------------------
    squeezelite -o hw:CARD=Intel -L             
  Volume controls for hw:CARD=Intel
  Master
  Headphone
  Speaker+LO
  PCM
  Mic
  Mic Boost
  Dock Mic
  Dock Mic Boost
  Internal Mic
  Internal Mic Boost
  
--------------------


otherwise a software volume adjustment is applied using 32-bits.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=117236

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

Reply via email to