mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 22:21:11 +02:00
commit patch greatly improving the detection of format of raw audio files, by Philipp Sibler
This commit is contained in:
32
src/import/SpecPowerMeter.h
Normal file
32
src/import/SpecPowerMeter.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
SpecPowerMeter.h
|
||||
|
||||
Philipp Sibler
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_SPECPOWERMETER_H_
|
||||
#define __AUDACITY_SPECPOWERMETER_H_
|
||||
|
||||
class SpecPowerMeter
|
||||
{
|
||||
int mSigLen;
|
||||
|
||||
float* mSigI;
|
||||
float* mSigFR;
|
||||
float* mSigFI;
|
||||
|
||||
float CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, int hiBin);
|
||||
int Freq2Bin(float fc);
|
||||
public:
|
||||
SpecPowerMeter(int sigLen);
|
||||
~SpecPowerMeter();
|
||||
|
||||
float CalcPower(float* sig, float fc, float bw);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user