Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
24
Src/Winamp/SABuffer.h
Normal file
24
Src/Winamp/SABuffer.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef NULLSOFT_WINAMP_SA_BUFFER_H
|
||||
#define NULLSOFT_WINAMP_SA_BUFFER_H
|
||||
|
||||
#define SABUFFER_WINDOW_INCREMENT 256
|
||||
|
||||
class SABuffer
|
||||
{
|
||||
public:
|
||||
SABuffer();
|
||||
void WindowToFFTBuffer(float *wavetrum);
|
||||
unsigned int AddToBuffer(char *samples, int numChannels, int bps, int ts, unsigned int numSamples);
|
||||
bool Full() { return used == 512; }
|
||||
void CopyHalf();
|
||||
void Clear();
|
||||
private:
|
||||
|
||||
float buffer[2][512];
|
||||
float window[512];
|
||||
size_t used;
|
||||
bool init;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue