Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1203 from samaxes/dev-next
Browse files Browse the repository at this point in the history
Fix nativeAudio plugin parameters
  • Loading branch information
gortok committed Apr 1, 2016
2 parents 38c519a + af68a76 commit 346fd3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/nativeAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ angular.module('ngCordova.plugins.nativeAudio', [])
return q.promise;
},

preloadComplex: function (id, assetPath, volume, voices) {
preloadComplex: function (id, assetPath, volume, voices, delay) {
var q = $q.defer();
$window.plugins.NativeAudio.preloadComplex(id, assetPath, volume, voices, function (result) {
$window.plugins.NativeAudio.preloadComplex(id, assetPath, volume, voices, delay, function (result) {
q.resolve(result);
}, function (err) {
q.reject(err);
Expand All @@ -30,11 +30,11 @@ angular.module('ngCordova.plugins.nativeAudio', [])

play: function (id, completeCallback) {
var q = $q.defer();
$window.plugins.NativeAudio.play(id, completeCallback, function (err) {
q.reject(err);
}, function (result) {
$window.plugins.NativeAudio.play(id, function (result) {
q.resolve(result);
});
}, function (err) {
q.reject(err);
}, completeCallback);

return q.promise;
},
Expand Down

0 comments on commit 346fd3b

Please sign in to comment.