# Error when stopping audio share

**URL:** <https://devforum.zoom.us/t/error-when-stopping-audio-share/18355>\
**Category:** Windows\
**Created:** [May 19, 2020, 8:48pm UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355 "2020-05-19T20:48:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 19, 2020, 8:48pm UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/1 "2020-05-19T20:48:42Z")

</div>

Hi, I am using StartSharePureComputerAudio() to share audio from my PC. It works correcly and returns no error. But when I want to stop sharing, I call StopShare() but the share is not stopped and I receive “SDKERR\_WRONG\_USEAGE” error.  
Any idea about the cause?

Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 21, 2020, 7:33am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/2 "2020-05-21T07:33:17Z")

</div>

Sorry for bumping this, but it is a blocking issue for my product. I need to stop audio sharing but I don’t know why it’s not working.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 21, 2020, 7:42am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/3 "2020-05-21T07:42:47Z")

</div>

Hi [bragma](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/2),

Thanks for the post and pardon the late response. I have forwarded this question to the engineering team for further investigation and will provide an update as soon as I heard back from them. Will provide update shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 22, 2020, 6:38am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/4 "2020-05-22T06:38:46Z")

</div>

Hi [bragma](https://devforum.zoom.us/u/bragma),

Thanks for the post. The engineering team was able to identify an issue with this interface and we will fix this issue in the next release. Pardon the inconvenience caused by this.

Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 22, 2020, 7:07am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/5 "2020-05-22T07:07:53Z")

</div>

Thanks for checking this. Is it possible to know when the release will be? It is a blocking issue for us and we’ll need to have it fixed as soon as possible. Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 22, 2020, 8:03am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/6 "2020-05-22T08:03:48Z")

</div>

Hi @bragma,

Thanks for the reply. I do not have an ETA at the moment. Please follow our Github repo: [https://github.com/zoom/zoom-sdk-windows](https://github.com/zoom/zoom-sdk-windows) for any updates;

Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 22, 2020, 8:09am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/7 "2020-05-22T08:09:31Z")

</div>

Ok. If the problem is in the C# wrapper we can try to fix it, but there is nothing we can do in the SDK. Do you know if the problem is in the windows SDK or the wrapper?

Another question: What’s the purpose of EnableShareComputerSound(bool)? Can I use it as a workaround to stop audio sharing?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 23, 2020, 2:38am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/8 "2020-05-23T02:38:21Z")

</div>

Hi @bragma,

Thanks for the reply. I have forwarded your questions to the engineering team and will provide an update as soon as I heard back from them. In the meantime, here is the definition of the interface `EnableShareComputerSound` for your reference:

```auto
/// \brief Set to enable or disable the audio when sharing.
	/// \param bEnable TRUE indicates to enable. FALSE not.
	/// \return If the function succeeds, the return value is SDKErr_Success.
	///Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
	/// \remarks Valid for both ZOOM style and user custom interface mode.
	virtual SDKError EnableShareComputerSound(bool bEnable) = 0;

```

So this should work as a workaround.  
Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 23, 2020, 10:57am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/9 "2020-05-23T10:57:01Z")

</div>

Great, I’ll start audio share and use this call to start/stop audio. Nice workaround.

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 23, 2020, 4:05pm UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/10 "2020-05-23T16:05:06Z")

</div>

Sorry to bother you again @carson.zoom, but this does not seem to work too. When I want to stop sending audio I call EnableShareComputerSound(false), I get a success response but the audio is still sent.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 29, 2020, 5:04am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/11 "2020-05-29T05:04:49Z")

</div>

Hi @bragma ,

Thanks for the reply. The interface `EnableShareComputerSound` needs to be called before sharing, so it does not work while sharing. I will let you know once I have any updates on the next release.

Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 29, 2020, 1:24pm UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/12 "2020-05-29T13:24:58Z")

</div>

Thanks a lot @carson.zoom, this is blocking me from release

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [July 7, 2020, 10:54am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/13 "2020-07-07T10:54:36Z")

</div>

I confirm this is fixed in Windows SDK v5.0.24433.0616

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 8, 2020, 6:51am UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/14 "2020-07-08T06:51:09Z")

</div>

Glad to hear that! I saw you have raised other issues, I will work with the engineering team on those and get those resolved as well.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:36pm UTC](https://devforum.zoom.us/t/error-when-stopping-audio-share/18355/15 "2020-08-21T22:36:38Z")

</div>

Closed on August 21, 2020, 10:36pm UTC


