Skip to content

Anthony/prox audio updates#8316

Merged
anthonydiscord merged 3 commits into
mainfrom
anthony/prox-audio-updates
Apr 23, 2026
Merged

Anthony/prox audio updates#8316
anthonydiscord merged 3 commits into
mainfrom
anthony/prox-audio-updates

Conversation

@anthonydiscord
Copy link
Copy Markdown
Contributor

Adds a changelog for the proximity audio guide and fixes a few minor spelling errors.

@anthonydiscord anthonydiscord requested a review from a team as a code owner April 23, 2026 20:29
@anthonydiscord anthonydiscord requested review from markmandel and removed request for a team April 23, 2026 20:29
@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 23, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Discord 🟢 Ready View Preview Apr 23, 2026, 8:30 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

### 3. Intercepting the Audio

When Discord receives and decodes voice audio from a remote player, it calls your [`Client::UserAudioReceivedCallback`]. This callback hands you the raw PCM audio data along with the user ID of the speaker. It also gives you an `outShouldMute` flag. Setting this to `true` tells Discord not to play the audio through its normal output and allows you to control where it gets played.
When Discord receives and decodes voice audio from a remote player, it calls your `Client::UserAudioReceivedCallback`. This callback hands you the raw PCM audio data along with the user ID of the speaker. It also gives you an `outShouldMute` flag. Setting this to `true` tells Discord not to play the audio through its normal output and allows you to control where it gets played.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Client::UserAudioReceivedCallback] should be able to link - why not link it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't getting picked up for some reason and then I noticed another spot we use it in our docs also doesn't link either. I meant to ask you about this and just now remembered. Should all of the callbacks auto-link? I made sure the naming was right and everything else linked properly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yep your fix did it, thank you!

Comment thread developers/game-development/how-to-add-proximity-voice-chat-to-your-game.mdx Outdated
…-your-game.mdx

Co-authored-by: Mark Mandel <mark.mandel@discordapp.com>
@anthonydiscord anthonydiscord merged commit 42dc60b into main Apr 23, 2026
5 checks passed
@anthonydiscord anthonydiscord deleted the anthony/prox-audio-updates branch April 23, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants