mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 23:50:21 -04:00
Start audio DMA only in apps that use audio (#1982)
* Start audio DMA only in apps that use audio * Rename main.cpp to main.cpp.unuse * shrink_tx_buffer fix for transfers_per_buffer==1 scenario
This commit is contained in:
parent
3c489e1a81
commit
0b2d5f75cc
16 changed files with 67 additions and 27 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "sine_table_int8.hpp"
|
||||
#include "tonesets.hpp"
|
||||
#include "event_m4.hpp"
|
||||
#include "audio_dma.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
@ -167,6 +168,8 @@ void MicTXProcessor::on_message(const Message* const msg) {
|
|||
}
|
||||
|
||||
int main() {
|
||||
audio::dma::init_audio_in();
|
||||
|
||||
EventDispatcher event_dispatcher{std::make_unique<MicTXProcessor>()};
|
||||
event_dispatcher.run();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue