Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for handling audio streaming headers in the project. The main changes include adding a new configuration option, updating relevant configuration files, and implementing logic to process audio data with headers.
Key changes:
Configuration Updates:
audio_streaming_header
setting to theConfig
struct inconfig.go
to handle audio streaming headers.config_example.ini
to include the newaudio_streaming_header
setting with a default value offalse
.Documentation:
CHANGES.md
to document the addition of theaudio_streaming_header
setting.Code Implementation:
readPacketWithHeader
function inhandler.go
to process audio data with headers.opus2ogg
function inhandler.go
to usereadPacketWithHeader
whenaudio_streaming_header
is enabled.Imports:
encoding/binary
package import inhandler.go
to support the new header processing logic.This pull request introduces a new feature to handle audio streaming headers in the application. The key changes include updating the configuration to support this feature, modifying the handler to process audio data with headers, and adding a new function to read packets with headers.
Configuration Updates:
config.go
: Added a new configuration optionAudioStreamingHeader
to handle audio streaming headers.config_example.ini
: Updated the example configuration file to include the newaudio_streaming_header
option.Handler Modifications:
handler.go
: Added a new functionreadPacketWithHeader
to process audio data with headers.handler.go
: Updated theopus2ogg
function to use the newreadPacketWithHeader
function if theAudioStreamingHeader
configuration is enabled.Documentation:
CHANGES.md
: Documented the addition of the audio streaming header feature and its configuration.