mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-06 22:29:15 -04:00
Clear spectrum FIFO when streaming is stopped.
This commit is contained in:
parent
62e5ec1dbb
commit
136ba895ef
2 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,7 @@ void SpectrumCollector::start() {
|
||||||
|
|
||||||
void SpectrumCollector::stop() {
|
void SpectrumCollector::stop() {
|
||||||
streaming = false;
|
streaming = false;
|
||||||
|
fifo.reset_in();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumCollector::set_decimation_factor(
|
void SpectrumCollector::set_decimation_factor(
|
||||||
|
|
|
@ -42,6 +42,10 @@ public:
|
||||||
_in = _out = 0;
|
_in = _out = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset_in() {
|
||||||
|
_in = _out;
|
||||||
|
}
|
||||||
|
|
||||||
void reset_out() {
|
void reset_out() {
|
||||||
_out = _in;
|
_out = _in;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue