Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/replicant/nsmp3dec/sequencedetector.h

54 lines
1.3 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
/***************************************************************************\
*
* MPEG Layer3-Audio Decoder
* <EFBFBD> 1997-2006 by Fraunhofer IIS
* All Rights Reserved
*
* filename: sequencedetector.h
* project : ---
* author : Martin Sieler
* date : 1998-02-14
* contents/description: HEADER - sequence detector
*
*
\***************************************************************************/
/*
* $Date: 2010/11/17 20:46:05 $
* $Id: sequencedetector.h,v 1.1 2010/11/17 20:46:05 audiodsp Exp $
*/
#ifndef __SEQUENCEDETECTOR_H__
#define __SEQUENCEDETECTOR_H__
/* ------------------------ includes --------------------------------------*/
/*-------------------------- defines --------------------------------------*/
/*-------------------------------------------------------------------------*/
class CSequenceDetector
{
public:
CSequenceDetector(int nLimit);
~CSequenceDetector();
void Reset();
CSequenceDetector& operator+= (int nValue);
int GetLength() const;
int GetValue(int nIndex) const;
int GetSum() const;
protected:
private:
int m_Limit;
int m_Count;
bool *m_pDisabled;
int *m_pArray;
};
/*-------------------------------------------------------------------------*/
#endif