mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Use unique_ptr for baseband_buffer.
This commit is contained in:
parent
3493b7d1b7
commit
6101ca36cd
@ -85,7 +85,7 @@ void BasebandThread::run() {
|
|||||||
baseband_sgpio.init();
|
baseband_sgpio.init();
|
||||||
baseband::dma::init();
|
baseband::dma::init();
|
||||||
|
|
||||||
const auto baseband_buffer = new std::array<baseband::sample_t, 8192>();
|
const auto baseband_buffer = std::make_unique<std::array<baseband::sample_t, 8192>>();
|
||||||
baseband::dma::configure(
|
baseband::dma::configure(
|
||||||
baseband_buffer->data(),
|
baseband_buffer->data(),
|
||||||
direction()
|
direction()
|
||||||
@ -119,8 +119,6 @@ void BasebandThread::run() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete baseband_buffer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BasebandProcessor* BasebandThread::create_processor(const int32_t mode) {
|
BasebandProcessor* BasebandThread::create_processor(const int32_t mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user