Wavfile class

This commit is contained in:
furrtek
2016-12-07 20:49:42 +01:00
parent e56fa0f479
commit 1db138c27a
20 changed files with 640 additions and 312 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}