paul- wrote: 
> Well that is an issue, Bluetooth doesn’t output 32bit samples.  Why
> doesn’t your device handle 16bit samples.
> 
> 
> EDIT:
> 
> Ideally, you figure out why your DAC does not support S16_LE, otherwise
> we can use ALSA to do the conversion for you.  I am by far an alsa
> configuration expert, but I think this will work.  I tired this with my
> card, and when I checked the hw params, it showed the DAC was opened in
> 32bit, vs 16bit.
> 
> edit the file /etc/asound.conf   near the top of the file.  Add this
> > 
Code:
--------------------
  >   > 
  > pcm.mydevice {
  > type hw
  > card "AUDIO"
  > device 0
  > }
  > 
  > pcm.upsample {
  > type plug
  > slave {
  > pcm "mydevice"
  > format S32_LE
  > }
  > }
  > 
  > ctl.upsample {
  > type hw
  > card "AUDIO"
  > }
  > 
--------------------
> > 
> 
> Then in the output field, you need to use
> > 
Code:
--------------------
  >   > 
  > plug:upsample
  > 
--------------------
> > 
> 
> This will slightly increase the audio delay, as alsa has an extra step
> to upsample to 32bit.   Also, make sure you run a pcp backup after
> changing the file to backup your changes.......and make notes
> somewhere, as there some web pages or update processes that could
> overwrite asound.conf.

Wow.....after adding the upsample output there's sound coming out!
Really big thanks to you Paul. Next I will have to explore why the dac
refuses to accept S16_LE (the manufacturer says on its website that it
supports bit depth of 1-32 on usb interface, which does not seem to be
true). But out of curiosity, what's the difference between this scenario
and Squeezelite handling 16bit flac/wav files from redbook CDs? I can
play these files without any problems with squeezelite. Does this mean
that Squeezelite somehow does upsampling to 32bits before sending the
data to the dac? Can't we add an option somewhere and do the same as
what Squeezelite does with bluetooth? 

Best regards
Liu


------------------------------------------------------------------------
CLiu's Profile: http://forums.slimdevices.com/member.php?userid=72392
View this thread: http://forums.slimdevices.com/showthread.php?t=114834

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

Reply via email to