cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: [CB-2960] Changing the volume of a sound already playing
Date Wed, 10 Apr 2013 00:01:04 GMT
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 <shazron@apache.org>
Authored: Tue Apr 9 16:56:41 2013 -0700
Committer: Shazron Abdullah <shazron@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];
     }
 


Mime
View raw message