waveform fix 3 and trivial change (#2540)

This commit is contained in:
sommermorgentraum 2025-03-06 00:53:41 +08:00 committed by GitHub
parent e933c8b498
commit ee472e1ed2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 21 deletions

View file

@ -175,7 +175,8 @@ void SoundBoardView::refresh_list() {
for (auto& c : entry_extension)
c = toupper(c);
if (entry_extension == ".WAV") {
if (entry_extension == ".WAV" && entry.path().string().find("shopping_cart") == std::string::npos) {
/* ^ because the shopping cart lock app using the speaker to send the LF signal, it's meaningless to be here */
if (reader->open(wav_dir / entry.path())) {
if ((reader->channels() == 1) && ((reader->bits_per_sample() == 8) || (reader->bits_per_sample() == 16))) {
// sounds[c].ms_duration = reader->ms_duration();