title: NAudio decode stream of bytes
body: <p>Hi
  I am using the NAudio library at <a href="http://naudio.codeplex.com/" rel="nofollow">http://naudio.codeplex.com/</a></p>
  
  <p>I have this hardware made by some manufacturer which claims to send
  audio with the following characteristics.</p>
  
  <p>aLaw 8khz, AUD:11,0,3336,0</p>
  
  <p>Not sure what it all  means at this stage.</p>
  
  <p>I received bunch of bytes from this device when a user speaks into the
  equipment.
  Hence I am constantly recieving a stream of bytes at particular times</p>
  
  <p>At this stage I have been unable to decode the audio so I can hear
  what is spoken into the device with my headphones.</p>
  
  <p>I have tried writing the audio to a file doing code like</p>
  
  <p>FWaveFileWriter = new WaveFileWriter("C:\Test4.wav",
  WaveFormat.CreateALawFormat(8000, 1));</p>
  
  <p>And have been unable to playback the sound using the sample demo apps.</p>
  
  <p>I have tried similar code from</p>
  
  <p><a href="http://naudio.codeplex.com/Thread/View.aspx?ThreadId=231245" rel="nofollow">http://naudio.codeplex.com/Thread/View.aspx?ThreadId=231245</a> and
  <a href="http://naudio.codeplex.com/Thread/View.aspx?ThreadId=83270" rel="nofollow">http://naudio.codeplex.com/Thread/View.aspx?ThreadId=83270</a></p>
  
  <p>and still have not been able to achieve much.</p>
  
  <p>Any information is appreciated.
  Thanks
  Allen</p>