Skip to content

Commit 944d142

Browse files
committed
fix: audio player init issue and replay issue after position reset
1 parent 3b321e3 commit 944d142

File tree

1 file changed

+2
-2
lines changed
  • package/expo-package/src/optionalDependencies

1 file changed

+2
-2
lines changed

package/expo-package/src/optionalDependencies/Sound.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Sound = {
2121
playsInSilentMode: true,
2222
});
2323
const sound = new ExpoAudioSoundAdapter(source, initialStatus, onPlaybackStatusUpdate);
24-
await sound.loadAsync(source, initialStatus);
24+
await sound.loadAsync(initialStatus);
2525
return sound;
2626
}
2727
: AudioComponent
@@ -96,7 +96,7 @@ class ExpoAudioSoundAdapter {
9696
};
9797

9898
// eslint-disable-next-line require-await
99-
loadAsync = async (source, initialStatus) => {
99+
loadAsync = async (initialStatus) => {
100100
this.initialShouldCorrectPitch = initialStatus.shouldCorrectPitch;
101101
this.initialPitchCorrectionQuality = initialStatus.pitchCorrectionQuality;
102102
};

0 commit comments

Comments
 (0)