mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 22:22:21 -04:00
Replay buffer size and samplerate adjustment
This commit is contained in:
parent
33a2df9d2a
commit
46515ebb05
6 changed files with 36 additions and 26 deletions
|
@ -91,7 +91,7 @@ void ReplayView::set_file_list(const std::vector<std::filesystem::path>& file_li
|
|||
|
||||
for (const auto& file : file_list) {
|
||||
bbd_file.open("/" + file.string());
|
||||
duration = bbd_file.size() / (2 * 2 * (sampling_rate / 8));
|
||||
duration = bbd_file.size() / (2 * 2 * sampling_rate / 4);
|
||||
file_options.emplace_back(file.string().substr(0, 8), duration);
|
||||
}
|
||||
options_files.set_options(file_options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue