Java Question Load file

Gigatron

Member
Licensed User
Longtime User
Hi all


Those days i am working to port differents library to B4A.
For example here the SDL_Mixer loadMUS code in java,
This function load music ..
B4X:
 public static MixMusic loadMUS(String path) throws SDLException {
      
         SWIGTYPE_p__Mix_Music mixMusic = SWIG_SDLMixer.Mix_LoadMUS(path);
         if (mixMusic == null) {
             throw new SDLException(SDLMain.getError());
         }
         return new MixMusic(mixMusic);
          }
I would like to adapt this code working on B4A

Like this: loadMUS(File.Dirassets,"paradox.mod")

I cant find the way....

Thanks in advance
 
Top