mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-02 18:04:23 +01:00
Revert r11214 (sbsms timescale effect update) & r11215 (mixed-radix-fft narrow/broaden spectrum menu items) to honor the feature freeze.
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
// -*- mode: c++ -*-
|
||||
#ifndef DBTABLE_H
|
||||
#define DBTABLE_H
|
||||
|
||||
#include "real.h"
|
||||
|
||||
namespace _sbsms_ {
|
||||
|
||||
enum { dBTableSize = 4096, dBTableScale = dBTableSize - 1 };
|
||||
|
||||
extern float dBTable[dBTableSize];
|
||||
|
||||
inline float dBApprox(float x, float y)
|
||||
{
|
||||
if(x < y) {
|
||||
return dBTable[lrintf(x/y*dBTableScale)];
|
||||
} else if(x == 0.0f) {
|
||||
return 0;
|
||||
} else {
|
||||
return dBTable[lrintf(y/x*dBTableScale)];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user