Skip to content

Commit

Permalink
fix: On iOS, the "beep" sound was silent (#4480)
Browse files Browse the repository at this point in the history
* On iOS, the "beep" sound was silent

* Oops I forgot to commit the WAV file
  • Loading branch information
g123k authored Aug 8, 2023
1 parent 7cccfcd commit de837d3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Binary file removed packages/smooth_app/assets/audio/beep.ogg
Binary file not shown.
Binary file added packages/smooth_app/assets/audio/beep.wav
Binary file not shown.
3 changes: 1 addition & 2 deletions packages/smooth_app/lib/pages/scan/scan_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class _ScanPageState extends State<ScanPage> {
await _initSoundManagerIfNecessary();
await _musicPlayer!.stop();
await _musicPlayer!.play(
AssetSource('audio/beep.ogg'),
AssetSource('audio/beep.wav'),
volume: 0.5,
ctx: const AudioContext(
android: AudioContextAndroid(
Expand All @@ -129,7 +129,6 @@ class _ScanPageState extends State<ScanPage> {
category: AVAudioSessionCategory.soloAmbient,
options: <AVAudioSessionOptions>[
AVAudioSessionOptions.mixWithOthers,
AVAudioSessionOptions.defaultToSpeaker,
],
),
),
Expand Down

0 comments on commit de837d3

Please sign in to comment.