🍱 Update audio assets
This commit is contained in:
BIN
assets/audio/alert.reversed.wav
Normal file
BIN
assets/audio/alert.reversed.wav
Normal file
Binary file not shown.
BIN
assets/audio/alert.wav
Normal file
BIN
assets/audio/alert.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/audio/messages.wav
Normal file
BIN
assets/audio/messages.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/audio/notification.wav
Normal file
BIN
assets/audio/notification.wav
Normal file
Binary file not shown.
@@ -35,7 +35,7 @@ final notificationSfxProvider = FutureProvider<void>((ref) async {
|
|||||||
final player = ref.watch(sfxPlayerProvider);
|
final player = ref.watch(sfxPlayerProvider);
|
||||||
await player.setVolume(0.75);
|
await player.setVolume(0.75);
|
||||||
await player.setAudioSource(
|
await player.setAudioSource(
|
||||||
AudioSource.asset('assets/audio/notification.mp3'),
|
AudioSource.asset('assets/audio/notification.wav'),
|
||||||
preload: true,
|
preload: true,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -43,7 +43,7 @@ final notificationSfxProvider = FutureProvider<void>((ref) async {
|
|||||||
final messageSfxProvider = FutureProvider<void>((ref) async {
|
final messageSfxProvider = FutureProvider<void>((ref) async {
|
||||||
final player = ref.watch(sfxPlayerProvider);
|
final player = ref.watch(sfxPlayerProvider);
|
||||||
await player.setAudioSource(
|
await player.setAudioSource(
|
||||||
AudioSource.asset('assets/audio/messages.mp3'),
|
AudioSource.asset('assets/audio/messages.wav'),
|
||||||
preload: true,
|
preload: true,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -70,7 +70,8 @@ void playMessageSfx(WidgetRef ref) {
|
|||||||
|
|
||||||
class MiniSampleSynth {
|
class MiniSampleSynth {
|
||||||
final String sampleAsset;
|
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;
|
AudioPlayer? currentPlayer;
|
||||||
|
|
||||||
@@ -173,4 +174,4 @@ class MiniSampleSynth {
|
|||||||
}
|
}
|
||||||
return 200; // fallback
|
return 200; // fallback
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user