Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a method for sending silent audio frames on OpusEncodeStream #2668

Merged
merged 13 commits into from Aug 10, 2023

Conversation

F0903
Copy link
Contributor

@F0903 F0903 commented Apr 17, 2023

This PR adds a method on OpusEncodeStream, that sends 5 frames of silence to prevent audio interpolation errors when pausing audio input, or stopping the audio stream as per the Discord API Reference recommendation.

Currently requires the user to manually call it on breaks in audio output (pause/stop).

Note:
The changes to Discord.Net.Interactions.csproj are due to warnings that appear from deprecated classes and properties (warning CS0618), which gets turned into errors as set in the project settings, which will then not allow me to compile the project. Therefore I have just set it to ignore this specific warning.

@F0903
Copy link
Contributor Author

F0903 commented Apr 17, 2023

I have removed the changes to the project file, so the note can be ignored.

@F0903 F0903 marked this pull request as ready for review April 17, 2023 02:39
@quinchs quinchs merged commit 59094d2 into discord-net:dev Aug 10, 2023
3 checks passed
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.

None yet

2 participants