-
Notifications
You must be signed in to change notification settings - Fork 16
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
Check VOC file loading #4
Comments
Source code is added in mentioned topic. |
Hi @nick7inc. Thanks for your comment. I'm gonna be honest: I'm not really much of a C programmer, besides a few small experiments. The only thing I did for this repo is make sure it cross compiles correctly on DJGPP. As I understand it, there's a bug in 4.2.1 I'll try to have a look at it soon, but I'm not sure I can actually verify myself if the fix works correctly and doesn't break anything else because I just don't have the experience for that. |
Yes, _al_load_voc_pf() (to be correct) in Allegro4. It is loads only 1st block of VOC file (only first 2 of total 12 seconds). The _al_load_voc_f() from original Allegro5 do the same, but has more complex (and commented) code, so I could fix it to load whole VOC file from DukeNukem3D GRP resource file. If you will have troubles, let me know (I use old MinGW, it is GCC-type compiler as well as DJGPP). If I'll have time (and health) I can try to convert C++ into C. I also have little experience in C, but the most code of _al5_uload_voc_mod() is C-type code. You need to get rid of template, refference, class (may be - enum) and little correct structure to fit C restrictions. |
enum is supported by C, but not a bool type. I done it! Just need to test if it is works. |
patch.zip |
And useful function:
|
I don't actually understand where this file and that function are supposed to go. Is there any chance you could make this into a PR? |
I have no Allegro 4.2.2 source code, and no experience with git-specific actions (what is the PR-?).
|
Hello. I am use Allegro 4.2.1 and [found] (liballeg/allegro5#1341 (comment)), that one VOC file loads incorrectly in my 4.2.1 and Allegro 5 voc load function. I successfully backports _al_load_voc_f() from 5 to 4.2.1. If someone can check this file in 4.2.2 I can give my _al_load_voc_mod() function adopted for 4.2.1.
The text was updated successfully, but these errors were encountered: