/* $Id$
 *
 * Copyright (c) 1999 Xenonsoft Limited. All Rights Reserved.
 *
 * This software is protected by copyright. You are hereby notified from
 * now by reading this message. This software is also the confidential 
 * and proprietary information of Xenonsoft Limited.  ("Confidential
 * Information"). 
 *
 * This software is distributed under the Xenonsoft Public end user 
 * License ("XPeL"), where the machine-readable source code is provided 
 * under the "Open Source" model.
 * For more information, please read the file "LICENSE-XPL.txt" 
 */

// SoundFilterDataBuffer.java

//
// Description:
//	  
//	  
// Author:
//	  Peter Pilgrim Tue Jun 22 16:58:39 BST 1999
//	  
// RCS HEADER 
// 
// $Author$
// $Date$
// $Source$
// $Revision$    $State$    $Locker$
//
// ================================================================================
// History
//	  $Log$
// 
// 

package xenon.soundkit;

/**
 * The sound filter data buffer
 *
 * @author Peter Pilgrim Wed Jun 23 00:59:40 BST 1999
 * @version $Id$
 *
 */
public class SoundFilterDataBuffer
{
    protected int	maximum_amplitude;
    protected int	minimum_amplitude;
    protected int	clip_length;
    public int []	filter_buffer;

    public SoundFilterDataBuffer( int length, int min_amp, int max_amp )
    {
	this( length, length, min_amp, max_amp );
    }
	
    public SoundFilterDataBuffer( int length, int clip_len, 
				  int min_amp, int max_amp )
    {
	minimum_amplitude = min_amp;
	maximum_amplitude = max_amp;
	clip_length = clip_len;
	filter_buffer = new int[length];
	for ( int q=0; q<filter_buffer.length; ++q )
	    filter_buffer[q] = 0;
    }

    public void setClipLength( int cl )
    {
	clip_length = cl;
    }
    
    public int getClipLength()
    {
	return (clip_length);
    }
    
}

// fini

