mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 18:19:08 -04:00
Use IFIR decimation for broadcast FM receiver.
This commit is contained in:
parent
a02bfe55d0
commit
e720bfb054
5 changed files with 67 additions and 23 deletions
|
@ -76,11 +76,9 @@ class FIR64AndDecimateBy2Real {
|
|||
public:
|
||||
static constexpr size_t taps_count = 64;
|
||||
|
||||
FIR64AndDecimateBy2Real(
|
||||
void configure(
|
||||
const std::array<int16_t, taps_count>& taps
|
||||
) : taps(taps)
|
||||
{
|
||||
}
|
||||
);
|
||||
|
||||
buffer_s16_t execute(
|
||||
buffer_s16_t src,
|
||||
|
@ -89,7 +87,7 @@ public:
|
|||
|
||||
private:
|
||||
std::array<int16_t, taps_count + 2> z;
|
||||
const std::array<int16_t, taps_count>& taps;
|
||||
std::array<int16_t, taps_count> taps;
|
||||
};
|
||||
|
||||
class FIRC8xR16x24FS4Decim4 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue