-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 audio_get_status
result
#48
Fix audio_get_status
result
#48
Conversation
Thanks! Hmm the enum*.rs is autogenerated by https://github.com/ssalonen/libcec-sys/blob/master/scripts/run-bindgen/bindgen.sh So somethings needs to be done there... need to have a bit closer look to comment something sensible can you add simple tests to the conversion similar to other such functions in this lib? |
Oh ok! I'll just add them back. I mainly just removed them because the new struct made those enums unnecessary. I'll also keep using the constants from |
560d074
to
0888e34
Compare
Yes I think it's ok to keep all enums as-is and having this usability-layer separately like you have done here with new struct |
666685e
to
8182776
Compare
I refactored my changes a bit so this new struct can be used with https://github.com/ssalonen/cec-alsa-sync.
|
f9f908e
to
62d8dfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Added few small colments
62d8dfe
to
374c243
Compare
audio_get_status
returns an audio status, and doesn't propagate the transmit result:Also the status doesn't neatly fit into a Rust enum, so I removed the existing enum and added a wrapper struct.
Page 260 of High-Definition Multimedia Interface Specification 1.3a