Skip to content

Commit 57295bd

Browse files
committed
fixed: audios cut of on android
1 parent c3ff434 commit 57295bd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Fixed:
3232
- DoJG: Zooming and scrolling using the mouse wheel conflicts each other
3333
- Anki
3434
- The order of languages when sending to Anki has been ignored
35+
- Some audio files cut of on Android devices
3536

3637
-------------------------------------------------------------------------
3738

lib/screens/kana_table/kana_table_screen.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class _KanaTableScreenState extends State<KanaTableScreen> with SingleTickerProv
7777
/// The animation controller for the kana info card
7878
late AnimationController _controller;
7979
/// The player for the kana sound
80-
final mdk.Player kanaSoundPlayer = mdk.Player();
80+
final mdk.Player kanaSoundPlayer = mdk.Player()..audioBackends = ["AudioTrack"];
8181

8282

8383
@override

lib/widgets/dictionary/dictionary_word_tab.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class _DictionaryWordTabState extends State<DictionaryWordTab> {
7777
/// the directory in which the audio files are stored
7878
late Directory audioFilesDir;
7979
/// Playback of audio files
80-
final mdk.Player player = mdk.Player();
80+
final mdk.Player player = mdk.Player()..audioBackends = ["AudioTrack"];
8181
/// Is currently the google image search expanded
8282
bool googleImagesIsExpanded = false;
8383
/// Is the conjugation table currently expanded

0 commit comments

Comments
 (0)