-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
It seems jmf library coming with j-ogg-all is not required? #1958
Comments
I don't see an easy way to check whether JMF is required. The runtime checks you did are encouraging but they didn't cover all code paths. "jmf-2.1.1e.jar" contains 993 class files in over 100 packages with a wide variety of names, so grepping for names would be a huge undertaking. I'm sure jme3-jogg utilizes only a fraction of j-ogg-all's capabilities. If the goal is to minimize application size, one might copy code from j-ogg-all to jme3-jogg on an as-required basis and see where the process leads. That would be intellectually satisfying, but my experience with shrinking JME apps has convinced me that the big wins are in reducing texture sizes, not deleting unused code. |
Jmf has a lot of functions rather than just code used by j-ogg-all, so i think the only way to reduce the size of the jmf library is by maintaining the jmf library and re-distributing it into multiple modules and so the jogg-all can selectively implement the essential code only.... |
The goal is to remove unrequired libraries. It is a good idea to copy only the required classes to jme3-jogg but until someone does that, considering that
|
I performed this experiment and found that jme3-jogg needs only 3 packages from j-ogg-all in order to compile:
Those 3 packages all compile without JMF. So unless there are hidden runtime dependencies (via reflection), we can safely exclude JMF as proposed above. |
I noticed if I exclude the jmf library coming with j-ogg-all, I can still play ogg sound in JME. Looks like jmf is not required for decoding ogg files(?) if so, we may safely exclude it in
jme3-jogg
. (the jmf jar size is 1.8 MB!)From a quick glance at ogg package, I could not find any class using
jmf
package.@stephengold can you please confirm if jmf library is required for decoding ogg files in JME?
The text was updated successfully, but these errors were encountered: