Skip to content

Commit

Permalink
rework the sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Feb 17, 2024
1 parent 503a3ac commit 9c78cd2
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tarok/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Built with Flutter.
- Geoff-Bremner-Audio - CC0 - https://freesound.org/people/Geoff-Bremner-Audio/sounds/682449/

#### Work in the UI
- annabloom - CC Attribution NonCommercial 4.0 License - https://freesound.org/people/annabloom/sounds/219069/
- el_boss - CC0 - https://freesound.org/people/el_boss/sounds/677861/

#### Notification sounds
- rhodesmas - CC Attribution 3.0 Unported - https://freesound.org/people/rhodesmas/sounds/342755/
Expand Down
Binary file added tarok/assets/zvoki/click1.ogg
Binary file not shown.
Binary file removed tarok/assets/zvoki/click1.wav
Binary file not shown.
Binary file removed tarok/assets/zvoki/karta2.mp3
Binary file not shown.
Binary file added tarok/assets/zvoki/karta2.ogg
Binary file not shown.
Binary file removed tarok/assets/zvoki/karta3.mp3
Binary file not shown.
Binary file added tarok/assets/zvoki/karta3.ogg
Binary file not shown.
Binary file removed tarok/assets/zvoki/karta4.mp3
Binary file not shown.
Binary file added tarok/assets/zvoki/karta4.ogg
Binary file not shown.
Binary file removed tarok/assets/zvoki/notification1.mp3
Binary file not shown.
Binary file added tarok/assets/zvoki/notification1.ogg
Binary file not shown.
Binary file removed tarok/assets/zvoki/notification1.wav
Binary file not shown.
6 changes: 3 additions & 3 deletions tarok/lib/sounds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Sounds {
if (r == 0) {
playable = Media('asset:///assets/zvoki/karta.ogg');
} else {
playable = Media('asset:///assets/zvoki/karta2.mp3');
playable = Media('asset:///assets/zvoki/karta2.ogg');
}
await player.open(playable);
}
Expand All @@ -39,15 +39,15 @@ class Sounds {
if (!SOUNDS_ENABLED) {
return;
}
final playable = Media('asset:///assets/zvoki/click1.wav');
final playable = Media('asset:///assets/zvoki/click1.ogg');
await player.open(playable);
}

static Future<void> inviteNotification() async {
if (!SOUNDS_ENABLED) {
return;
}
final playable = Media('asset:///assets/zvoki/notification1.mp3');
final playable = Media('asset:///assets/zvoki/notification1.ogg');
await player.open(playable);
}
}

0 comments on commit 9c78cd2

Please sign in to comment.