mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-03 07:01:50 +00:00
Wavfile class
This commit is contained in:
@@ -564,9 +564,9 @@ void Checkbox::set_text(const std::string value) {
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
std::string Checkbox::text() const {
|
||||
/*std::string Checkbox::text() const {
|
||||
return text_;
|
||||
}
|
||||
}*/
|
||||
|
||||
void Checkbox::set_value(const bool value) {
|
||||
value_ = value;
|
||||
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
}
|
||||
|
||||
void set_text(const std::string value);
|
||||
std::string text() const;
|
||||
// std::string text() const;
|
||||
void set_value(const bool value);
|
||||
bool value() const;
|
||||
|
||||
|
||||
@@ -31,6 +31,14 @@
|
||||
|
||||
#define LOCATE_IN_RAM __attribute__((section(".ramtext")))
|
||||
|
||||
inline uint16_t fb_to_uint16(const std::string& fb) {
|
||||
return (fb[1] << 8) + fb[0];
|
||||
}
|
||||
|
||||
inline uint32_t fb_to_uint32(const std::string& fb) {
|
||||
return (fb[3] << 24) + (fb[2] << 16) + (fb[1] << 8) + fb[0];
|
||||
}
|
||||
|
||||
constexpr size_t operator "" _KiB(unsigned long long v) {
|
||||
return v * 1024;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user