mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 05:47:38 +00:00
Remove extra buffer structs/copies.
This commit is contained in:
@@ -32,10 +32,7 @@ void WidebandFMAudio::execute(const buffer_c8_t& buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto decim_0_out = decim_0.execute(buffer, dst_buffer);
|
const auto decim_0_out = decim_0.execute(buffer, dst_buffer);
|
||||||
const auto decim_1_out = decim_1.execute(decim_0_out, dst_buffer);
|
const auto channel = decim_1.execute(decim_0_out, dst_buffer);
|
||||||
const auto decimator_out = decim_1_out;
|
|
||||||
|
|
||||||
auto channel = decimator_out;
|
|
||||||
|
|
||||||
// TODO: Feed channel_stats post-decimation data?
|
// TODO: Feed channel_stats post-decimation data?
|
||||||
feed_channel_stats(channel);
|
feed_channel_stats(channel);
|
||||||
@@ -53,7 +50,7 @@ void WidebandFMAudio::execute(const buffer_c8_t& buffer) {
|
|||||||
* pass < +/- 100kHz, stop > +/- 200kHz
|
* pass < +/- 100kHz, stop > +/- 200kHz
|
||||||
*/
|
*/
|
||||||
|
|
||||||
auto audio_oversampled = demod.execute(decimator_out, work_audio_buffer);
|
auto audio_oversampled = demod.execute(channel, work_audio_buffer);
|
||||||
|
|
||||||
/* 384kHz int16_t[256]
|
/* 384kHz int16_t[256]
|
||||||
* -> 4th order CIC decimation by 2, gain of 1
|
* -> 4th order CIC decimation by 2, gain of 1
|
||||||
|
Reference in New Issue
Block a user