# Reading AudioRawData

**URL:** <https://devforum.zoom.us/t/reading-audiorawdata/72258>\
**Category:** Windows\
**Created:** [July 14, 2022, 7:14pm UTC](https://devforum.zoom.us/t/reading-audiorawdata/72258 "2022-07-14T19:14:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabgu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saurabgu/32/32969_2.png) [@saurabgu](https://devforum.zoom.us/u/saurabgu)\
**Post date:** [July 14, 2022, 7:14pm UTC](https://devforum.zoom.us/t/reading-audiorawdata/72258/1 "2022-07-14T19:14:22Z")

</div>

**Description**  
I am trying to read Raw Audio data using the C++ Meeting SDK using `IZoomSDKAudioRawDataDelegate::onMixedAudioRawDataReceived(AudioRawData* data)` and I have some clarifying questions to better support this:

1. `AudioRawData` does not provide the total number of channels in the data. By observation, I think it is an interleaved Stereo output. Please confirm if this can vary or will remain the same?
2. The Incoming buffer(`AudioRawData::GetBuffer()`) is 640 bytes of char\* buffer. I `reinterpret_cast` this to `int16_t` which gives me 320 samples of 16-bit audio. I filter the data for the channel provided in `AudioRawData::GetChannelNum()`, which gives me 160 samples.`AudioRawData::GetSampleRate` gives me 32000. However, the data sounds better when played at 16kHz. Am I doing this right?

**Which Windows Meeting SDK version?**  
v5.10.6.1639

**Device (please complete the following information):**

- Device: MSI GS66 Stealth
- OS: Windows 10

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 14, 2022, 5:14am UTC](https://devforum.zoom.us/t/reading-audiorawdata/72258/2 "2022-08-14T05:14:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
