org.jouvieje.bass
Class Init

java.lang.Object
  extended byorg.jouvieje.bass.Init

public class Init
extends java.lang.Object

Initialization of NativeBass / BASS.
You should call Init.loadLibraries before using NativeBass & BASS.


Field Summary
static boolean DEBUG
          Display errors when loading libraries
 
Method Summary
static int getInitMode()
          Mode used for the initialization.
static boolean isLibrariesLoaded()
          You can use this method to know if all libraries needed for the INIT_MODES choosen.
static void loadLibraries()
          This is the first thing to do before trying to use BASS.
static void loadLibraries(int mode)
          This is the first thing to do before trying to use BASS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Display errors when loading libraries

Method Detail

loadLibraries

public static void loadLibraries()
                          throws InitException
This is the first thing to do before trying to use BASS.

This method loads all requiered libraries.
If all libraries are not loaded an exception occures. Then, you can decide what should be done.

This is equivalent to the call loadLibraries(INIT_MODES.INIT_DEFAULT).

Throws:
InitException - exception that occures when all libraries are not properly loaded.
See Also:
loadLibraries(int), INIT_MODES

loadLibraries

public static void loadLibraries(int mode)
                          throws InitException
This is the first thing to do before trying to use BASS.

This method loads all requiered libraries.
If all libraries are not loaded an exception occures. Then, you can decide what should be done.

Throws:
InitException - exception that occures when all libraries are not properly loaded.
See Also:
INIT_MODES

isLibrariesLoaded

public static boolean isLibrariesLoaded()
You can use this method to know if all libraries needed for the INIT_MODES choosen.

Returns:
true if all libraries requiered are loaded.

getInitMode

public static int getInitMode()
Mode used for the initialization.

Returns:
INIT_MODES value specified to loadLibraries.
-1 if the loading is not done.
See Also:
loadLibraries(int), INIT_MODES


NativeBass is an Open Source Project under GNU LGPL License
NativeBass Project - © Copyright 2007-2008 - Jérôme Jouvie (Jouvieje)
http://jerome.jouvie.free.fr/ - jerome.jouvie@gmail.com

(Documentation Copyright © Ian Luck - BASS - http://www.un4seen.com)