mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 01:29:03 -04:00
fixed memory usage (#2380)
* fixed memory usage in ui_about_simple * fixed memory usage in freqman_db * fixed memory usage in tone_key
This commit is contained in:
parent
fc08d4ead9
commit
b108d975c0
7 changed files with 42 additions and 24 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace tonekey {
|
||||
|
@ -35,7 +36,7 @@ namespace tonekey {
|
|||
#define F2Ix100(x) (int32_t)(x * 100.0 + 0.5) // add 0.5f to round vs truncate during FP->int conversion
|
||||
|
||||
using tone_index = int32_t;
|
||||
using tone_key_t = std::vector<std::pair<std::string, uint32_t>>;
|
||||
using tone_key_t = std::vector<std::pair<std::string_view, uint32_t>>;
|
||||
|
||||
extern const tone_key_t tone_keys;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue