Reading AudioRawData

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.

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