Re: alsaplayer error using USB Audio DAC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, I can play wav files using aplay through the USB DAC. It doesn't matter whether I specify card and device on the command line or in an asoundrc file. Getting back to the subject of this thread, the problem is with alsaplayer. Alsaplayer can play wav files through the SoundByLayout (onboard card) of the mac mini directly into an amp, but when I try to play the same wav file with alsaplayer through the USB DAC, I get the originally posted error(s). Doesn't matter if it is flac or wav, the error is the same.

$ alsaplayer file.wav
error on set_format SND_PCM_FORMAT_S16
Unavailable hw params:
... (detail in original post)
error on set_format SND_PCM_FORMAT_S16
Unavailable hw params:
... (detail in original post)
failed to configure output device...trying OSS
... (above repeated once)
$

I would prefer to use alsaplayer, which supports compression and already has all the handy control (start-stop-pause) functions. I assume this is some configuration or missing library(?) issue with alsaplayer. I appreciate any help.

On Aug 10, 2013, at 6:22 AM, Paul Davis wrote:

> you get static because aplay doesn't handle anything except regular PCM data. compressed file formats like FLAC are recognized as "raw data" and it just guesses a sample rate and data format, which naturally are all wrong. find a PCM file (something.wav) and try that.
> 
> 
> On Sat, Aug 10, 2013 at 9:19 AM, Roger Weinheimer <rweinheimer@xxxxxxxxx> wrote:
> So I tried
> 
> miniG4:~$ aplay --device=plughw:1,0 flac/ripit/B/Beatles/Let_It_Be..._Naked/10_Across_The_Universe.flac
> Playing raw data 'flac/ripit/B/Beatles/Let_It_Be..._Naked/10_Across_The_Universe.flac' : Unsigned 8 bit, Rate 8000 Hz, Mono
> ^CAborted by signal Interrupt...
> miniG4:~$
> 
> and got static. Which is a huge improvement! At least I'm getting sound, now.
> 
> Clemens, I appreciate all your interest and support.
> 
> As I stated originally, the man at the local stereo shop duplicated my environment, albeit on slightly different hardware (macbook G4 vs mini G4). His is working. What differences should I be looking at?
> 
> On Aug 10, 2013, at 1:28 AM, Clemens Ladisch wrote:
> 
> > Roger Weinheimer wrote:
> >> These are the specs from the DAC packaging, fwiw. Does this help to address format/capabilities questions?
> >
> > It does not really matter what particular format is attempted to be used
> > by the player, and what particular format is actually supported by the
> > device.  Just replace "hw" with "plughw", and the format will be
> > automatically converted, if necessary.
> >
> >
> > Regards,
> > Clemens
> 
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
> http://lists.linuxaudio.org/listinfo/linux-audio-user
> 

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user



[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux