Code example for Visualizer

Methods: release, setEnabled

0
   * MediaPlayer it is good practice to call this method 
   */ 
  public void release() 
  { 
    if( mVisualizer != null ) {
        mVisualizer.setEnabled(false);
        mVisualizer.release();
    } 
  } 
 
  /** 
   *  Makes sure the Visualizer class isn't still processing data when no music is playing 
   */ 
  public void pause() { 
      if( mVisualizer != null ) {
          mVisualizer.setEnabled(false);
      } 
  } 
 
  /** 
   *  Makes sure the Visualizer class is processing data again since music is playing