Code example for Visualizer

Methods: release

0
        return isAvailable() && visualizer.getEnabled();
    } 
 
    public void release() { 
        if (isAvailable()) { 
            visualizer.release();
			released = true;
        } 
    } 
 
    public Visualizer getVisualizer() {
		if(released) {
			released = false;
			try { 
				visualizer = new Visualizer(audioSessionId);
			} catch (Throwable x) {
				visualizer = null;
				Log.w(TAG, "Failed to create visualizer.", x);
			} 
		}