-
Notifications
You must be signed in to change notification settings - Fork 310
Creative voc decoder #10
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
Also added a proper Cmake FindSndfile.cmake script.
internal VOC decoder
from Master of Orion.
|
As per Beoran's observations in the linked thread, I've pushed a different implementation moving out libsndfile to a DIFFERENT file (which can be included or not) and created (I wouldn't say ported from A4) a new internal decoder for VOC files. |
lines. Removed and polished the comments.
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.
What's this all about?
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.
In MSYS2 environment, I had cmake which did not find gdiplus. Adding a suggested name libgdiplus fixed the problem
|
Is there a (very small) .voc file we could add to the examples/data to make sure there's something to test this on? |
|
They are extremely small, but the ones I am working on are (most probably) covered by copyrights, since I am working with Master of Orion 2 samples. I GUESS I could search for some free samples or conver the ones we have with SoX. I'll look after it when I'm back from off-site duties (give me a couple days or whenabouts). |
|
I looked a bit more closely at this. I think it looks pretty good, I can fix the rest of the minor style issues myself. One thing that you should fix is that you never check the return value of |
|
Will check the al_read functions and add return value control when applicable. But could you pls let me know what are the style problems still present? That way I won't need to look at the diff post-work and I'll be able to contribute more properly to allegro next time. Cheers |
addons/acodec/voc.c
Outdated
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.
Extra semicolon.
addons/acodec/voc.c
Outdated
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.
Missing space before the 2.
|
Hope to have got all of them, I looked into the while file several times, but it's just like when you try to proofread your own essay for the billionth time....my eyes just keep crossing ^__^" |
Pull request for feature in the title.
I've talked about this in this allegro.cc thead: .VOC (Creative Voice File) samples playback with Allegro.
Actual decoding is done through libsndfile for which I added support in the build system.
Comments are appreciated, I'll be anyway sending a patch to the mailing list for proper procedure.
Discussion Topics: