# Problem with voice chat with core api (c++)

**URL:** <https://qa.fmod.com/t/problem-with-voice-chat-with-core-api-c/22756>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [April 1, 2025, 10:02am UTC](https://qa.fmod.com/t/problem-with-voice-chat-with-core-api-c/22756 "2025-04-01T10:02:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 14, 2025, 3:11am UTC](https://qa.fmod.com/t/problem-with-voice-chat-with-core-api-c/22756/6 "2025-04-14T03:11:08Z")

</div>

Thanks for testing that.

Just to confirm, you are using FMOD for the recording and playing of the sound? If so, you shouldn’t have to lock and unlock the sound. In the example, you are recording directly to the sound that is being played.

Another user had some issues with stuttering here: [Vivox to Unity OnAudioFilterRead to FMOD programmer sound. Stutters/crackling - #15 by dougmolina](https://qa.fmod.com/t/vivox-to-unity-onaudiofilterread-to-fmod-programmer-sound-stutters-crackling/21235/15). It may have some useful information.

> [@Phil\_ip](#):
>
> Some people I have spoken with have suggested that the problem might be that the recording pauses when the locked function is called, is that a correct assumption?

Potentially, it may also be that the buffer is not long enough:

```CPP
exinfo.length = (myFreq * sizeof(short) * myChannelsCount);

```

```CPP
result = system->getRecordDriverInfo(DEVICE_INDEX, NULL, 0, NULL, &nativeRate, NULL, &nativeChannels, NULL);
exinfo.length = nativeRate * sizeof(short) * nativeChannels; /* 1 second buffer, size here doesn't change latency */

```

Hope this helps!

---

_[View the full topic](https://qa.fmod.com/t/problem-with-voice-chat-with-core-api-c/22756)._
