title: Playing Audio of Decoded RTP packets
body: <p>I captured RTP packets and Decoded them with this code:</p>
  
  <pre><code>public byte[] Decode(byte[] data)
  {
      MemoryStream src=new MemoryStream(data);
      System.IO.BinaryReader brsrc=new BinaryReader(src);
      MemoryStream dst=new MemoryStream();
      System.IO.BinaryWriter bwdst=new BinaryWriter(dst);
      int step=(int)(data.Length/10);
      for(int i=0;i&lt;step;i++)
      {
          byte[] d=new byte[160];
          va_g729a_decoder(brsrc.ReadBytes(10),d,0);
          bwdst.Write(d);
      }
      byte[] ret=dst.GetBuffer();
      brsrc.Close();
      bwdst.Close();
      src.Close();
      dst.Close();
      return ret;         
  }
  </code></pre>
  
  <p>using the g729 dll.</p>
  
  <p>now I have a byte array full of Decoded RTP packets, How do I play it or turn it into a WAV file or something close?</p>
  
  <p>Thnaks,
  Ofek</p>