# Using onOneWayAudioRawDataReceived from C# Wrapper

**URL:** <https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539>\
**Category:** Windows\
**Created:** [April 8, 2021, 2:06pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539 "2021-04-08T14:06:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 8, 2021, 2:06pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/1 "2021-04-08T14:06:31Z")

</div>

**Description**  
I’m looking for the onOneWayAudioRawDataReceived method in the C# wrapper, but I’m not able to find it. I’m wondering if it is in the roadmap, and also if there are links for importing the method from the C++ library into the C# library.

**C# Wrapper SDK version**  
v5.5.12509.0330

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

- OS: Windows 10

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 8, 2021, 9:19pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/2 "2021-04-08T21:19:42Z")

</div>

Hey @tyler,

Thanks for using the dev forum!

That method is not currently implemented in the C# wrapper, and would have to be implemented locally. I would recommend following the relative steps here, but for the functions you are looking for: [Customized UI C# callback - #3 by Carson\_Chen](https://devforum.zoom.us/t/customized-ui-c-callback/7155/3).

Please note, that rawdata is not currently supported for developers at this time.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 8, 2021, 9:42pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/3 "2021-04-08T21:42:05Z")

</div>

Hey @Michael_Condon,

I checked the post and I’m not immediately seeing the relationship between the two methods, but I’ll keep digging. I admit my C++ is a bit rusty so this might take some effort to get what I want working.

> Please note, that rawdata is not currently supported for developers at this time.

Not sure what you meant by this. Does this mean that `onOneWayAudioRawDataReceived` is not currently working in the C++ library? Or am I misunderstanding?

Also, do you have any code samples of setups for `onOneWayAudioRawDataReceived`? I read the documentation here ([https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data)), but seeing it as part of a full project might be useful.

One more thing … is the C# wrapper open source? If so, that would be REALLY useful as I could use that as a reference for wrapping `onOneWayAudioRawDataReceived` as part of the `ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance`.

Thanks for the fast reply!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 9, 2021, 8:07pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/4 "2021-04-09T20:07:47Z")

</div>

Hi @tyler,

> Not sure what you meant by this. Does this mean that onOneWayAudioRawDataReceived is not currently working in the C++ library? Or am I misunderstanding?

In order to utilize raw data in any of our Client SDKs, a raw data license is required. It is currently not possible to obtain a raw data license. We would like to be able to make this feature more widely available in the future, but do not yet have a timeline on when it will be more easily accessible.

> Also, do you have any code samples of setups for `onOneWayAudioRawDataReceived` ?

We are actively working on improving our existing SDK documentation. If/when raw data licenses become generally available, there should be documentation to accompany it.

> One more thing … is the C# wrapper open source?

It was previously, but unfortunately that is no longer the case. We are looking into whether or not we can resume this practive in the future.

Thanks!

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 9, 2021, 8:11pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/5 "2021-04-09T20:11:30Z")

</div>

Hey @jon.zoom,

So to clarify, retrieving raw audio data following the procedure listed on this page is not possible?

> **[Raw data - Advanced - Windows - Video SDKs - Zoom Software Development Kit...](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data)**
>
> Raw data
> 
> The Video SDK provides you with an option to access real-time raw audio of a session. After accessing the raw data, you can process it and app...

If so, why is this functionality listed in the zoom marketplace? I’ve been playing with the `IZoomSDKAudioRawDataDelegate` for the past few days but haven’t gotten it connected yet.

Please note this is for the C++ SDK and not the C# wrapper.

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 9, 2021, 9:58pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/6 "2021-04-09T21:58:55Z")

</div>

@jon.zoom follow up question … though my original question stands; is the code in [https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data) not meant to be used? If so, how do we go about getting a raw data license?

Here is the code I have. Before entering this method, I’m initializing the Zoom instance in C# and then calling this method which might also be causing an issue.

When I run this, `hasLicense` is false, and `pAudioHelper` is null.

```auto
namespace HELPER {
    typedef void (*CallbackFunction)(char*, uint32_t);

    class AudioDelegateImplementation : public ZOOM_SDK_NAMESPACE::IZoomSDKAudioRawDataDelegate {
    private:
        CallbackFunction m_onOneWayAudioReceived;
    public:
        AudioDelegateImplementation(CallbackFunction cb) {
            m_onOneWayAudioReceived = cb;
        }

        ~AudioDelegateImplementation() {

        }

        void onMixedAudioRawDataReceived(AudioRawData* data_) override {

        }

        void onOneWayAudioRawDataReceived(AudioRawData* data_, uint32_t node_id) override {
            // Access user-specific raw data here for the user associated with the user.
            if (!data_) return;

            unsigned int audioChannelNumber = data_->GetChannelNum();
            unsigned int audioSampleRate = data_->GetSampleRate();
            unsigned int bufferLength = data_->GetBufferLen();

            char* buffer = data_->GetBuffer();

            m_onOneWayAudioReceived(buffer, node_id);
        };
    };
}
...
    __declspec(dllexport) void__stdcall setup_audio_stream(HELPER::CallbackFunction cb) {
        bool hasLicense = ZOOM_SDK_NAMESPACE::HasRawdataLicense();

        ZOOM_SDK_NAMESPACE::IZoomSDKAudioRawDataHelper* pAudioHelper = ZOOM_SDK_NAMESPACE::GetAudioRawdataHelper();

        HELPER::AudioDelegateImplementation* delegateObj = new HELPER::AudioDelegateImplementation(cb);
        pAudioHelper->subscribe(delegateObj);
    }

```

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 12, 2021, 8:41pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/7 "2021-04-12T20:41:37Z")

</div>

Hey @tyler,

> [@tyler](#):
>
> So to clarify, retrieving raw audio data following the procedure listed on this page is not possible?
> 
> ![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d779a6df05dbcc2d24ca5f49a2975c05563a4c20.ico) [Developer](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data)
> 
> ### [Raw data - Advanced - Windows - Video SDKs - Zoom Software Development Kit…](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data)
> 
> Raw data The Video SDK provides you with an option to access real-time raw audio of a session. After accessing the raw data, you can process it and app…
> 
> If so, why is this functionality listed in the zoom marketplace? I’ve been playing with the `IZoomSDKAudioRawDataDelegate` for the past few days but haven’t gotten it connected yet.

I apologize for the confusion here. The link that was tagged is for the Video SDK and not the Client SDK. Zoom provides two separate SDK’s: the Client SDK (or Meeting SDK), which is for embedded a Zoom Meeting Experience into your application, and a Video SDK for creating online video streaming sessions. Raw data is supported for all developers in the Video SDK, but needs a license in the Client SDK. The functionality and API for both SDK’s is very similar when it comes to raw data.

> [@tyler](#):
>
> follow up question … though my original question stands; is the code in [https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data](https://marketplace.zoom.us/docs/sdk/video/windows/advanced/raw-data) not meant to be used? If so, how do we go about getting a raw data license?

The code in that link is for the Video SDK. It will work if you are using that SDK, but is not meant to be used in the Client SDK. At this time, we do not have a process for distributing raw data licenses in the Client SDK, but it is on the roadmap for the near future.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 14, 2021, 2:08pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/8 "2021-04-14T14:08:24Z")

</div>

Thanks @Michael_Condon. Where can I subscribe for updates about the raw audio license? I’d be very anxious to know when it is available.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 14, 2021, 10:24pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/9 "2021-04-14T22:24:15Z")

</div>

Hey @tyler,

We do not currently have a medium for subscribing to updates about this. However, I can update this thread when I hear any news.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 30, 2021, 3:44pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/10 "2021-04-30T15:44:53Z")

</div>

Does raw video work without a raw data license?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 30, 2021, 7:47pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/11 "2021-04-30T19:47:37Z")

</div>

Hey @tyler,

No it does not. Without a license you would need to use the Video SDK for Raw Data.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [April 30, 2021, 8:03pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/12 "2021-04-30T20:03:11Z")

</div>

Is there a way to get a stream of video data from Zoom without creating a desktop screen?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 30, 2021, 11:09pm UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/13 "2021-04-30T23:09:58Z")

</div>

Hey @tyler,

Not without raw data access.

Thanks!  
Michael

---

<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:** [May 31, 2021, 9:10am UTC](https://devforum.zoom.us/t/using-ononewayaudiorawdatareceived-from-c-wrapper/47539/14 "2021-05-31T09:10:44Z")

</div>

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