Skip to content

Commit

Permalink
[#19] v1.7.7: Android: Fixes SamplePlayer.play() - It missed to resol…
Browse files Browse the repository at this point in the history
…ve its promise
birdofpreyru committed Sep 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a7b8300 commit afca9a9
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -60,6 +60,8 @@ void play(String sampleName, boolean loop, Promise promise) {
streamId = pool.play(soundId, 1, 1, 1, loop ? 1 : 0, 1);
if (streamId == 0) Errors.OPERATION_FAILED.reject(promise);
else streamIds.put(sampleName, streamId);

promise.resolve(null);
}

void stop(String sampleName, Promise promise) {
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dr.pogodin/react-native-audio",
"version": "1.7.6",
"version": "1.7.7",
"description": "React Native: access to the audio input stream",
"main": "lib/commonjs/index",
"module": "lib/module/index",

0 comments on commit afca9a9

Please sign in to comment.