Closed Argent77 closed 11 years ago
This issue can be closed when NI no longer throws an exception on OGG files. For full support, refer to issue #32 .
The 3rd party Java package JOrbis adds native Ogg Vorbis decoding support. It's licensed under LGPL.
What do you think about adding the package to this project?
Edit: Alternatively, we could simply provide an export button, so the user can play it back in his/her audio player of choice.
I looked a little at JOrbis a while back. Maybe I overlooked something, but it did not look like much of a library. Apparently you have to do your OGG comprehension yourself. I haven't looked at it at all, but from the description, J-Ogg may be an option. Edit: J-Ogg is possibly old and unmaintained.
Only providing an export option doesn't really work. Aside from the music, which really needs MUS comprehension, there are the eleventy million short voice clips. Having to play the sounds in an external player would be inconvenient to say the least.
This library may be another alternative. It requires Java 7, however.
Added Ogg Vorbis support and native ACM support. Added simplified audio resource system, cleaned up InfinityAmp, updated MUS resource class and Mass Exporter to reflect the changes.
The old sound classes have been deprecated and can be safely removed after dropping NWN/KOTOR support. References to the external audio conversion tools can be removed as well after dropping NWN/KOTOR support.
Retained IMA ADPCM support for now, but I suppose it's only used in NWN or KOTOR if at all (BG/BG2 and IWD/IWD2 don't support IMA ADPCM wave files).
Commit: https://github.com/Argent77/NearInfinity/commit/582b2371f5dde92394c28422c793b3e5a73eb4dc
Note: The threading code of the MUSResource class caused some trouble. Please give a notice if you still experience some weird GUI behavior in the MUS viewer (e.g. an occasional empty soundtrack list).
The audio decoder GUI stuff can be removed now. ACM is not used by NWN or KotOR. Unless the old sound classes are still hooked up, they can be removed as well.
OGG files are labeled as ACM or WAV.