mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-25 17:11:13 -05:00
Rename SD record variables: "free"/"recorded" -> "available"
This commit is contained in:
parent
b2322370a9
commit
7d3e697ea8
@ -151,7 +151,7 @@ RecordView::RecordView(
|
|||||||
&button_record,
|
&button_record,
|
||||||
&text_record_filename,
|
&text_record_filename,
|
||||||
&text_record_dropped,
|
&text_record_dropped,
|
||||||
&text_time_recorded,
|
&text_time_available,
|
||||||
} });
|
} });
|
||||||
|
|
||||||
button_record.on_select = [this](ImageButton&) {
|
button_record.on_select = [this](ImageButton&) {
|
||||||
@ -249,8 +249,8 @@ void RecordView::on_tick_second() {
|
|||||||
|
|
||||||
const auto space_info = std::filesystem::space("");
|
const auto space_info = std::filesystem::space("");
|
||||||
const uint32_t bytes_per_second = file_type == FileType::WAV ? (sampling_rate * 2) : (sampling_rate * 4);
|
const uint32_t bytes_per_second = file_type == FileType::WAV ? (sampling_rate * 2) : (sampling_rate * 4);
|
||||||
const uint32_t free_seconds = space_info.free / bytes_per_second;
|
const uint32_t available_seconds = space_info.free / bytes_per_second;
|
||||||
text_time_recorded.set(to_string_dec_uint(free_seconds, 6, ' ') + "s");
|
text_time_available.set(to_string_dec_uint(available_seconds, 6, ' ') + "s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ private:
|
|||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
Text text_time_recorded {
|
Text text_time_available {
|
||||||
{ 23 * 8, 0 * 16, 7 * 8, 16 },
|
{ 23 * 8, 0 * 16, 7 * 8, 16 },
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user