-
Couldn't load subscription status.
- Fork 364
Add Shorten (SHN) support #1257
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
Conversation
In shnfile there are quite a few things that could be cleaned up a bit (e.g. using TagLib's |
I went back and forth on this. I couldn't find a clear standard in TagLib for the naming. File extensions seemed to be common for namespace names- Monkey's Audio uses
The code is modified from a Shorten decoder I wrote in Objective-C++ a few years ago. The naming conventions are a bit of a mishmash as I've ported portions back and forth to different languages several times including this pared-down port to C++. I was generally inspired by the original shorten written by Tony Robinson as the reference for the Shorten format.
Those are four-character codes (integers masquerading), not string literals, but they can easily be changed to integers.
|
cppcheck --enable=all --inline-suppr \ --suppress=noExplicitConstructor --suppress=unusedFunction \ --suppress=missingIncludeSystem --project=compile_commands.json
Reason for these changes: getRiceGolombCode(k, uInt32CodeSize) was called with int k for uint32_t& argument. There was also a warning from MSVC for line 299: warning C4267: 'argument': conversion from 'size_t' to 'int'
|
It looks good to me. I just added a few commit with stylistic changes, you can still remove them if you do not agree. |
|
Thanks for the review- I am fine with those changes. I pushed another commit with some additional explicit types in an attempt to further standardize and group constants. What is your opinion on |
Probably, |
Also rename files to match
|
If there are no further review comments or objections in the next few days I will squash and merge this into |
Closes #1256