// Path: src/main/java/com/oxande/wavecleaner/util/logging/LogFactory.java
// public class LogFactory {
// 	public static final Logger getLog(final Class<?> clazz) {
// 		Logger log = LogManager.getLogger(clazz);
// 		return log;
// 	}
// }


import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;
import org.apache.logging.log4j.Logger;
import com.oxande.wavecleaner.util.logging.LogFactory;

package com.oxande.wavecleaner.ui;





/**
 * A component for displaying information about the RMS and peak levels. The
 * VUMeter stores its status which is not the way to do, but this should be
 * sufficient.
 * 
 * You have to set the sample rate and push each sample. The analysis is as
 * fast as possible. Mainly used by the preamplifier with the output including
 * the gain (which can explain some saturation). Only peaks level are displayed.
 * By construction, the level is calculated for the last 20 milliseconds. When the
 * level is higher than the peak, the peak is stored for 2 seconds. Thoses values could
 * be changed (see code for reference).
 * 
 * @author wrey75
 *
 */
@SuppressWarnings("serial")
public class VUMeterComponent extends JComponent {

// Path: src/main/java/com/oxande/wavecleaner/util/logging/LogFactory.java
// public class LogFactory {
// 	public static final Logger getLog(final Class<?> clazz) {
// 		Logger log = LogManager.getLogger(clazz);
// 		return log;
// 	}
// }


// Path: src/main/java/com/oxande/wavecleaner/ui/VUMeterComponent.java
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;
import org.apache.logging.log4j.Logger;
import com.oxande.wavecleaner.util.logging.LogFactory;

package com.oxande.wavecleaner.ui;





/**
 * A component for displaying information about the RMS and peak levels. The
 * VUMeter stores its status which is not the way to do, but this should be
 * sufficient.
 * 
 * You have to set the sample rate and push each sample. The analysis is as
 * fast as possible. Mainly used by the preamplifier with the output including
 * the gain (which can explain some saturation). Only peaks level are displayed.
 * By construction, the level is calculated for the last 20 milliseconds. When the
 * level is higher than the peak, the peak is stored for 2 seconds. Thoses values could
 * be changed (see code for reference).
 * 
 * @author wrey75
 *
 */
@SuppressWarnings("serial")
public class VUMeterComponent extends JComponent {

	private static Logger LOG = LogFactory.getLog(VUMeterComponent.class);
