You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/04/10 02:01:04 UTC
ios commit: [CB-2960] Changing the volume of a sound already playing
Updated Branches:
refs/heads/master 1b22bd801 -> 27de7de31
[CB-2960] Changing the volume of a sound already playing
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/27de7de3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/27de7de3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/27de7de3
Branch: refs/heads/master
Commit: 27de7de31182014ba075243687c1080f58640875
Parents: 1b22bd8
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Apr 9 16:56:41 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Apr 9 16:57:53 2013 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVSound.m | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/27de7de3/CordovaLib/Classes/CDVSound.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVSound.m b/CordovaLib/Classes/CDVSound.m
index 88fbbd6..71eab59 100644
--- a/CordovaLib/Classes/CDVSound.m
+++ b/CordovaLib/Classes/CDVSound.m
@@ -273,6 +273,9 @@
} else {
audioFile = [[self soundCache] objectForKey:mediaId];
audioFile.volume = volume;
+ if (audioFile.player) {
+ audioFile.player.volume = [volume floatValue];
+ }
[[self soundCache] setObject:audioFile forKey:mediaId];
}