Page 1 of 1

Add Ogg Music to Mod?

Posted: Sun Oct 15, 2017 3:17 am
by Knight Captain
I'm trying to add an Ogg file to my mod, but I can't find a working example in another mod. It appears the file should be in the si71.ogg name scheme, but where would I place this?

The file plays fine elsewhere.

Re: Add Ogg Music to Mod?

Posted: Sun Oct 15, 2017 3:20 am
by Knight Captain
Previously using UI_play_music(70, 0) did not play anything, but now it plays the Exult startup music in my SI mod.

Re: Add Ogg Music to Mod?

Posted: Mon Jun 25, 2018 8:21 pm
by Knight Captain
Got it!

File location is:
Exult\silverseed\mods\conquests\data\music\

File name must be in this format:
71si.ogg

Until I added this, playing 71 seemed to play a sound effect.

What's interesting is the Digital Music Pack uses bgnn.ogg for BG, but for SI uses nnsi.ogg.

Re: Add Ogg Music to Mod?

Posted: Tue Jun 26, 2018 3:23 am
by Dominus
Maybe Simon, who implemented it a decade ago, wanted to make sure that he finds the SI songs right away...

Re: Add Ogg Music to Mod?

Posted: Sun Nov 25, 2018 7:02 am
by Knight Captain
The same .ogg file that sounds completely fine when played by other programs sounds artifacted in Exult. That may explain why.

Re: Add Ogg Music to Mod?

Posted: Sun Nov 25, 2018 7:54 am
by Knight Captain
Seems the default Audio Sample Rate is the issue. If I turn that up from 22050 to either 44100 or 48000 the artifacting disappears.

Re: Add Ogg Music to Mod?

Posted: Sun Nov 25, 2018 7:59 am
by Knight Captain
Feature request for modern defaults:
https://sourceforge.net/p/exult/feature-requests/201/