<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div>     I am trying to write a simple extension pack for a college project, that reads the AudioSamples being provided by VRDEAudioSamples to be played back by an ALSA player.</div><div>     As a first step, I want to save the samples to a .wav file, so that aplay can read it and play it. Towards this, I have the following questions, and will be glad if someone could <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">     please answer these questions -</div><div>     1) How to convert the various values encoded in VRDEAUDIOFORMAT to nSamplesPerSec, nAvgBytesPerSec, nBlockAlign and other information required for a wav
 header?</div><div>     2) How do I interpret the data in the buffer that is being provided as part of VRDEAudioSamples?</div><div>     3) Also, how do I calculate the total number of bytes that are being passed as part of VRDEAudioSamples?<br></div><div>Regards,</div><div>Sriram</div></div></body></html>