Skip to content

Commit f28f968

Browse files
authored
Audio should not play when changing speed (#171)
1 parent 7ba9cfe commit f28f968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Plugin.Maui.Audio/AudioPlayer/AudioPlayer.android.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ protected void SetSpeedInternal(double sp)
100100
stopwatch.Start();
101101
player.Start();
102102
}
103+
else // Explicitly pause the player if it was not playing before
104+
{
105+
player.Pause();
106+
}
103107
}
104108
finally
105109
{

0 commit comments

Comments
 (0)