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 SetComplexity to decoder #57

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open

Conversation

avezina-ubik
Copy link

In order to support deep PLC, libopus added OPUS_SET_COMPLEXITY() to the decoder API.

This PR adds SetComplexity method to the decoder.

Note that if libopus < 1.5 this function will return ErrUnimplemented so users could easily ignore it like this:

dec, err := opus.NewDecoder(48000, 1)
if err != nil {
	// ... handle error
}

err = dec.SetComplexity(10)
if err != nil && err != opus.ErrUnimplemented {
	// ... handle error
}

@avezina-ubik
Copy link
Author

This should help #54

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.

1 participant