private void loadConverter(){
  AudioConversionLibrary library=null;
  try {
    @SuppressWarnings("rawtypes") Class temp=Class.forName("jmbe.JMBEAudioLibrary");
    library=(AudioConversionLibrary)temp.newInstance();
    if ((library.getMajorVersion() == 0 && library.getMinorVersion() >= 3 && library.getBuildVersion() >= 3) || library.getMajorVersion() >= 1) {
      mAudioConverter=library.getAudioConverter(IMBE_CODEC,AudioFormats.PCM_SIGNED_8KHZ_16BITS_MONO);
      if (mAudioConverter != null) {
        mCanConvertAudio=true;
        if (!mLibraryLoadStatusLogged) {
          StringBuilder sb=new StringBuilder();
          sb.append("JMBE audio conversion library [");
          sb.append(library.getVersion());
          sb.append("] successfully loaded - P25 audio will be available");
          mLog.info(sb.toString());
          mLibraryLoadStatusLogged=true;
        }
      }
 else {
        if (!mLibraryLoadStatusLogged) {
          mLog.info("JMBE audio conversion library NOT FOUND");
          mLibraryLoadStatusLogged=true;
        }
      }
    }
 else {
      mLog.warn("JMBE library version 0.3.1 or higher is required - found: " + library.getVersion());
    }
  }
 catch (  ClassNotFoundException e1) {
    if (!mLibraryLoadStatusLogged) {
      mLog.error("Couldn't find/load JMBE audio conversion library");
      mLibraryLoadStatusLogged=true;
    }
  }
catch (  InstantiationException e1) {
    if (!mLibraryLoadStatusLogged) {
      mLog.error("Couldn't instantiate JMBE audio conversion library class");
      mLibraryLoadStatusLogged=true;
    }
  }
catch (  IllegalAccessException e1) {
    if (!mLibraryLoadStatusLogged) {
      mLog.error("Couldn't load JMBE audio conversion library due to " + "security restrictions");
      mLibraryLoadStatusLogged=true;
    }
  }
}

private void loadConverter ( ) { AudioConversionLibrary library = null ; try { @ SuppressWarnings ( "rawtypes" ) Class temp = Class . forName ( "jmbe.JMBEAudioLibrary" ) ; library = ( AudioConversionLibrary ) temp . newInstance ( ) ; if ( ( library . getMajorVersion ( ) == 0 && library . getMinorVersion ( ) >= 3 && library . getBuildVersion ( ) >= 3 ) || library . getMajorVersion ( ) >= 1 ) { mAudioConverter = library . getAudioConverter ( IMBE_CODEC , AudioFormats . PCM_SIGNED_8KHZ_16BITS_MONO ) ; if ( mAudioConverter != null ) { mCanConvertAudio = true ; if ( ! mLibraryLoadStatusLogged ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "JMBE audio conversion library [" ) ; sb . append ( library . getVersion ( ) ) ; sb . append ( "] successfully loaded - P25 audio will be available" ) ; mLog . info ( sb . toString ( ) ) ; mLibraryLoadStatusLogged = true ; } } else { if ( ! mLibraryLoadStatusLogged ) { mLog . info ( "JMBE audio conversion library NOT FOUND" ) ; mLibraryLoadStatusLogged = true ; } } } else { mLog . warn ( "JMBE library version 0.3.1 or higher is required - found: " + library . getVersion ( ) ) ; } } catch ( ClassNotFoundException e1 ) { if ( ! mLibraryLoadStatusLogged ) { mLog . error ( "Couldn't find/load JMBE audio conversion library" ) ; mLibraryLoadStatusLogged = true ; } } catch ( InstantiationException e1 ) { if ( ! mLibraryLoadStatusLogged ) { mLog . error ( "Couldn't instantiate JMBE audio conversion library class" ) ; mLibraryLoadStatusLogged = true ; } } catch ( IllegalAccessException e1 ) { if ( ! mLibraryLoadStatusLogged ) { mLog . error ( "Couldn't load JMBE audio conversion library due to " + "security restrictions" ) ; mLibraryLoadStatusLogged = true ; } } }
loads audio frame processing chain . constructs an imbe targetdataline to receive the raw imbe frames . adds an imbe to 8k pcm format conversion stream wrapper . finally , adds an upsampling ( 8k to 48k ) stream wrapper .
