-
Notifications
You must be signed in to change notification settings - Fork 647
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
fix 96kbps playback issue #1434
base: dev
Are you sure you want to change the base?
Conversation
Oh damn it. These types where removed by the protobuf update. Anyhow, wouldn't it be better to re-add the types discussed here #1236 (comment)? And could we add an comment somewhere in the proto file, so that we don't remove it accidentally again? |
Maybe we could come up with a test that just checks all the format types arer there? |
Unfortunately I still have no clue where all those type definitions come from and if they are valid or not. I thought the missing definitions have been removed by intention. I'll add
later on again. |
Is the unknown type still required then? |
What I remember from the original discussion the Edit: |
Personally I would prefer to not modify the proto files from the extracted version. But as long as it's working and is tested I would also be fine as it is. So @fivebanger please add a small test that checks for the default value and the additional types so that we don't run into the problem again when we update the proto files. It would also be helpful to have a reference to the initial issue or PR somewhere in a comment around the test. |
It does seem brittle. Would it work if to try and parse it as an |
I just looked at the issue in detail again. The tl;dr; is to adjust the The explanation in detail: The audio format is already send as You can see the issue pretty well if you look at snippets from the format printed to the console: // a known enum variant
format: Some(OGG_VORBIS_96)
...
// an unknown enum variant with id 13
//
// that also explains why adding the other formats fixes the problem
// as they don't overwrite OGG_VORBIS_96 anymore because they are
// not anymore mapped as the default
format: Some(13) @fivebanger Friendly bump to add tests for the changed protobuf defintions, or adjust the changes to only fix the code part. If you need help or have any questions feel free to ask anytime :) |
Fixes 96kbps issues (fixes #1433 (comment))