mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-19 04:19:30 -04:00
Finally found what was eating all the RAM :D
Re-enabled the tone key selector in Soundboard Soundboard now uses OutputStream, like Replay Constexpr'd a bunch of consts which were going to BSS section Exiting an app now goes back to main menu Cleaned up Message array
This commit is contained in:
parent
2d3a6313cc
commit
b29c1d9749
28 changed files with 419 additions and 279 deletions
|
@ -88,7 +88,7 @@ uint32_t ReplayThread::run() {
|
|||
if (prefill_buffer == nullptr) {
|
||||
buffers.put_app(prefill_buffer);
|
||||
} else {
|
||||
size_t blocks = 16384 / 512;
|
||||
size_t blocks = config.read_size / 512;
|
||||
|
||||
for (size_t c = 0; c < blocks; c++) {
|
||||
auto read_result = reader->read(&((uint8_t*)prefill_buffer->data())[c * 512], 512);
|
||||
|
@ -97,7 +97,7 @@ uint32_t ReplayThread::run() {
|
|||
}
|
||||
}
|
||||
|
||||
prefill_buffer->set_size(16384);
|
||||
prefill_buffer->set_size(config.read_size);
|
||||
|
||||
buffers.put(prefill_buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue