OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: Orz on April 16, 2016, 05:28:17 am

Title: Re: Latest Nightly Not Playing FLAC?
Post by: Orz on April 16, 2016, 05:28:17 am
So I come back after 2 weeks (of being busy/not playing) to install latest nightly and I get some crashes. The thing is, I made no changes between then and now. First, UFO/EU had no music. So I switch to TFTD and everything's fine on that end. I do quickly notice, however, that under audio options TFTD only has "Music Format", whereas UFO/EU has that too plus "SFX Format" Was SFX an option before? I don't remember it. And if so, why doesn't TFTD also have it? Confused.

But anyway, I decide to switch back to UFO/EU and I get (pic is actually from different nightly, cuz I tried a couple different ones just to be sure):

(https://s23.postimg.org/t0b43tw7f/OXC_SAMPLE.jpg)

So I go check, and SAMPLE.CAT is right where it always was (SOUND folder).

Alright, I decide to revert to a much older nightly to see if that's the problem, and (starting again from TFTD) what I immediately discover when trying to go into UFO/EU is this:

(https://s30.postimg.org/nbqar8tm9/OXC_CRASH.jpg)

I then update back to the latest nightly and keep getting the same (above pic) crash. Notice there's also just 2 mods listed under UFO/EU, strangely enough (they haven't been deleted from the "standard" OXC folder under which they are listed, so they are clearly right where they should be).

Anyway, I figured if this was a known issue it would have already been addressed here, but it's just me by the looks of it. I honestly have no idea WTF is going on!

Should I just uninstall?

Hoping there'd be an easier/more stupid solution :P

No rush, I'm busy and won't be playing for a while, so I'll just leave this here for now.


PS: Already tried disabling all mods. Although I don't see how that'd be a problem since none of them affect MUSIC. Also, if curious, the following options (in options.cfg) are set to default:
Code: [Select]
  preferredMusic: 0
  preferredSound: 0
  preferredVideo: 0
Title: Re: Latest Nightly Sound/Music-related Crash?
Post by: Xtendo-com on April 16, 2016, 07:05:23 am
Tried latest already compiled nighty - works. Just perform a clean reinstall.

whereas UFO/EU has that too plus "SFX Format" Was SFX an option before?
Yes, you can read (https://www.ufopaedia.org/index.php/Audio_Options_%28OpenXcom%29#Sound_Format) about.
Title: Re: Latest Nightly Sound/Music-related Crash?
Post by: R1dO on April 16, 2016, 11:33:09 am
It might be that SAMPLE.CAT felt victim to the bit-flipping ethereal, causing it to be unreadable.

However since you also seem to miss a lot of mods that are supposed to be included with the nightly version i suspect that your current installation is broken badly.

If possible ... could you delete all current instances of OXC (after backing up important data off-course), and try a fresh install. Not only of OXC but also of the required datafiles.
Title: Re: Latest Nightly Not Playing FLAC?
Post by: Orz on April 16, 2016, 05:09:33 pm
Alright, deleted everything and re-installed and UFO/EU became accessible once again; however, music was still not playing. So I decided to bring back the original MIDI files (cuz I only kept Sycraft's remastered OST in FLAC under the SOUND folder) and music begun to play. Figured it's something to do with FLAC format because I'm also using a remastered OST (by Thomas Hawco) for TFTD in OGG and I had no issues on that end.

So I downloaded Sycraft's OST once again but in OGG format and it worked.

My guess is something in the latest nightlies is conflicting with FLAC?
Title: Re: Latest Nightly Not Playing FLAC?
Post by: Xtendo-com on April 16, 2016, 05:48:18 pm
My guess is something in the latest nightlies is conflicting with FLAC?
I can confirm this. FLAC doesn't work anymore. Looks like that issue (https://openxcom.org/forum/index.php/topic,4502.msg62095.html#msg62095) where MXE package doesn't supports FLAC without modifications.
Title: Re: Latest Nightly Not Playing FLAC?
Post by: Yankes on April 16, 2016, 07:08:30 pm
I can confirm this. FLAC doesn't work anymore. Looks like that issue (https://openxcom.org/forum/index.php/topic,4502.msg62095.html#msg62095) where MXE package doesn't supports FLAC without modifications.
Probably SupSuper updated mxe on server (IIRC try enabled backtrack for nightly) and old one had this enabled but new don't (or override old configuration).
Title: Re: Re: Latest Nightly Not Playing FLAC?
Post by: SupSuper on April 16, 2016, 07:22:13 pm
Probably SupSuper updated mxe on server (IIRC try enabled backtrack for nightly) and old one had this enabled but new don't (or override old configuration).
Apparently newest MXE has SDL_Mixer FLAC disabled by default, because it doesn't work with the latest libFLAC version. I had to flail around with configs and force some downgrading.

Anyways it should be supported again from openxcom_git_master_2016_04_16_1807.zip onwards, let me know if it works.
Title: Re: Latest Nightly Not Playing FLAC?
Post by: Xtendo-com on April 16, 2016, 08:02:56 pm
Anyways it should be supported again from openxcom_git_master_2016_04_16_1807.zip onwards, let me know if it works.
Still not work. Used syscraft (https://sycraft.org/content/audio/xcom.shtml) soundtrack to test flac (16 bit).

Also MP3 works in weird way. After starting a game sometimes main menu plays one second and immediately stop playing track. In options current active music shows adlib when I chosen MP3. Sometimes after starting a game main menu music works perfectly. I found no way to 100% reproduce this bug, just restart a game several times. Used syscraft (https://sycraft.org/content/audio/xcom.shtml) soundtrack to test MP3.
Title: Re: Re: Latest Nightly Not Playing FLAC?
Post by: Yankes on April 16, 2016, 08:31:08 pm
Apparently newest MXE has SDL_Mixer FLAC disabled by default, because it doesn't work with the latest libFLAC version. I had to flail around with configs and force some downgrading.

Anyways it should be supported again from openxcom_git_master_2016_04_16_1807.zip onwards, let me know if it works.
Could you post your changes as reference for others? Its bit strange because I don't remember that I need downgrade to made it work (but my mxe is couple moths old), at least nobody complains recently that FLAC don't work in extended.
Title: Re: Re: Latest Nightly Not Playing FLAC?
Post by: SupSuper on April 17, 2016, 06:17:55 am
Well that's annoying, I've enabled all the flags and stuff and it still doesn't want to work. :-\

Could you post your changes as reference for others? Its bit strange because I don't remember that I need downgrade to made it work (but my mxe is couple moths old), at least nobody complains recently that FLAC don't work in extended.
Well the MXE SDL_Mixer package explicitly disables FLAC: https://github.com/mxe/mxe/blob/master/src/sdl_mixer.mk
Are you using some other source?
Title: Re: Re: Latest Nightly Not Playing FLAC?
Post by: Xtendo-com on April 17, 2016, 12:44:51 pm
Well that's annoying, I've enabled all the flags and stuff and it still doesn't want to work. :-\
Well the MXE SDL_Mixer package explicitly disables FLAC: https://github.com/mxe/mxe/blob/master/src/sdl_mixer.mk
Are you using some other source?
Yankes forked (https://github.com/Yankes/mxe) MXE in order to enable FLAC support.
Title: Re: Re: Latest Nightly Not Playing FLAC?
Post by: Yankes on April 17, 2016, 03:44:52 pm
Yankes forked (https://github.com/Yankes/mxe) MXE in order to enable FLAC support.
At lest in couple of moth older version its work.

SupSuper if this don't work for you, I will check why it worked for me.
Title: Re: Latest Nightly Not Playing FLAC?
Post by: SupSuper on April 17, 2016, 11:09:01 pm
Turned out to be a configuration issue. Now FLAC works with latest version... but crashes after one second. :P
Title: Re: Latest Nightly Not Playing FLAC?
Post by: Xtendo-com on April 20, 2016, 04:11:58 pm
Should we support a weird music format like FLAC, MOD and etc especially when it has problems? OGG (with Vorbis inside) works fine. MP3 works in strange way but because of its popularity support of MP3 can help to avoid lossy-to-lossy transcode. Audiophiles can transcode lossless format to lossy with an audiophile settings anyway.