Open Voros2 opened 7 years ago
Understandably it's valuable in PK3 format (really, zip files) mods, but is there any standard for storing Vorbis in a WAD file?
It should be relatively simple to just copy Vorbis (or Opus, MP3, whatever) streams to/from WADs, assuming that's the request here. I would be uncomfortable with lossy encoding on either direction.
The ZDoom wiki doesn't seem particularly helpful whether their supported codecs are limited to PK3 or not. I suppose we can always test it. DeuTex already lets you insert arbitrary lumps via lumps/*.lmp
(extra support via musics/sounds would be great, however!)
So it won't have to convert Ogg files, rather recognise them properly compose/extract them without being renamed to MID, MUS, LMP or WAV. This is equally just as good. Making Deutex recognise the file format as a legit sound/music format would be a nice addition.
That would be my thought, I'd just like to research to see if there is existing source port support for it (rather not implement a feature nobody can use!). Wouldn't even require ogg libraries, just copy the file into the WAD :P
I just tested it in GZdoom, OGG works perfectly with both music and sounds in a WAD.
That's good news, we probably should have Ogg (and MP3) insertion/extraction, no re-encoding in either direction.
It raises a question of how to handle insertion though. If there is both a d_runnin.wav
and d_runnin.ogg
in a directory, what should happen? One of the formats can have priority, or we could exit with an error informing of the ambiguity, or maybe something else...
Apparently, If both D_RUNNIN.wav and D_RUNNIN.ogg are both in a wad, GZDoom uses the the last one as it's stored in the wad. If D_RUNNIN.wav is last, then it uses that, if D_RUNNIN.ogg is last, it uses that.
Can you provide an example of this wad? Neither of those names should be valid -- identifiers are only eight characters...
By default Deutex should always look for WAV files and insert them. If -ogg is selected, it should either include only OGG files or include both WAV and OGG files. Preferably the former over the latter.
Ogg Vorbis is a popular (and free) sound format used for both sounds and sometimes music in Doom WADs. I lack the knowledge to properly implement it, given how it's more complex than a Wave file.
Would it be possible for more experienced people familiar with the Ogg Vorbis codec to have a go with implementing it?