<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Most likely something like<br>
<br>
&lt;decoder program&gt; | aplay -f S16_LE -c 2 -r 44100<br>
<br>
will do the job if you have an ALSA output device and alsa-utils (i.e.
aplay). Depending on how the decoder deals with endianism you may need
to use the S16_BE format. It's been a long time since I dealt with the
example decoder so I can't remember the exact format it outputs.<br>
<br>
<br>
Nicholas<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:xiphmont@xiph.org">xiphmont@xiph.org</a> wrote:
<blockquote
 cite="mid:806dafc20912272223j72e3c01dnd92fae40e513698d@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, Dec 28, 2009 at 1:11 AM, Diptopal Basu <a class="moz-txt-link-rfc2396E" href="mailto:diptopal.basu@gmail.com">&lt;diptopal.basu@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Sure Monty , will keep that in mind . So I am assuming ,if I could get the
raw PCM and channel it directly to the PCM I will get noise . However if I
converted the accumulated PCM output to WAV , I could hear the file properly
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The reason you hear noise is that raw PCM can be any sample format,
and the sample format the PCM device is set to is not matching the
data you're sending to it.  The default sample format expected by a
Linux PCM device depends on which kernel API you are using as well as
details of the specific kernel build (that is, there is no reliable
default).

Command line players are able to set the specific sample format
parameters for playback (otherwise they could not function) and most
will expose these controls via command line switches.

Monty
_______________________________________________
Tremor mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tremor@xiph.org">Tremor@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/tremor">http://lists.xiph.org/mailman/listinfo/tremor</a>
  </pre>
</blockquote>
<br>
</body>
</html>