🍱 Update audio assets

This commit is contained in:
2026-01-18 01:14:06 +08:00
parent f572f5b462
commit 9d867fd888
7 changed files with 5 additions and 4 deletions

Binary file not shown.

BIN
assets/audio/alert.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/audio/messages.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -35,7 +35,7 @@ final notificationSfxProvider = FutureProvider<void>((ref) async {
final player = ref.watch(sfxPlayerProvider);
await player.setVolume(0.75);
await player.setAudioSource(
AudioSource.asset('assets/audio/notification.mp3'),
AudioSource.asset('assets/audio/notification.wav'),
preload: true,
);
});
@@ -43,7 +43,7 @@ final notificationSfxProvider = FutureProvider<void>((ref) async {
final messageSfxProvider = FutureProvider<void>((ref) async {
final player = ref.watch(sfxPlayerProvider);
await player.setAudioSource(
AudioSource.asset('assets/audio/messages.mp3'),
AudioSource.asset('assets/audio/messages.wav'),
preload: true,
);
});
@@ -70,7 +70,8 @@ void playMessageSfx(WidgetRef ref) {
class MiniSampleSynth {
final String sampleAsset;
final int baseNote; // MIDI note of the sample (usually 72 = C5 for lower pitch playback)
final int
baseNote; // MIDI note of the sample (usually 72 = C5 for lower pitch playback)
AudioPlayer? currentPlayer;
@@ -173,4 +174,4 @@ class MiniSampleSynth {
}
return 200; // fallback
}
}
}