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
Can't play ogg/flac on Windows #428
Comments
I have updated my git build system to use as many prebuilt libraries as possible, and so ogg and flac playback now work. So it was something on my end. I'm still having a less serious issue though: the path+filenames in the music config need to be a certain length, or else Chocolate doom adds extra characters to the end. e.g.
If I change the config to look for the files in a directory, say music/d_intro.ogg, they will be recognized and play properly. |
The strings are getting fscked up in M_StringReplace() which fails to add a trailing '\0'. Adding
in m_misc.c:344 right before the "return result;" fixes this issue. |
Alternatively, one could add
after the check for (result == NULL) in m_misc.c:324. |
Hey fraggle, could you comment on this, please? |
Hello? |
Sorry, I meant to take a look at this and it fell off my radar. This does indeed look like a bug. I suggest the
fix is the best option. |
Thanks. |
Remember item position in Crispness menu. Merged by the request of @fabiangreffrath. Fixes chocolate-doom#428.
I managed to compile Chocolate Doom from git on Windows, with flac and ogg support, by using flac 1.3.0 instead of 1.2.1. However I can't play ogg or flac music, with messages like
Failed to load substitute music file: D_INTRO.ogg: Unrecognized music format
in stderr.txt.I used the
dumpsubstconfig
command to generate the appropriate music config files.The music files are present in the chocolate Doom directory, and are being found - I get a different error if the replacement music file doesn't exist. The music files are valid and play in any audio player I have. Ogg playback still doesn't work if I edit the
build-chocolate-doom
script to only compile support for ogg and not flac.Relatedly,
-dumpsubstconfig
doesn't work if music playback is set to OPL.The text was updated successfully, but these errors were encountered: