Skip to content

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
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