Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCC1718A63 for ; Fri, 10 Jul 2015 19:20:06 +0000 (UTC) Received: (qmail 11345 invoked by uid 500); 10 Jul 2015 19:20:06 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 11234 invoked by uid 500); 10 Jul 2015 19:20:06 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 11095 invoked by uid 99); 10 Jul 2015 19:20:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 19:20:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 29348E3C3B; Fri, 10 Jul 2015 19:20:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: commits@cordova.apache.org Date: Fri, 10 Jul 2015 19:20:13 -0000 Message-Id: In-Reply-To: <32011e885bb242ddb90205779c771a3f@git.apache.org> References: <32011e885bb242ddb90205779c771a3f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [8/9] cordova-plugin-media git commit: rate is enabled, otherwise media has to be stopped and started to change rate. Fixed error getting command args rate is enabled, otherwise media has to be stopped and started to change rate. Fixed error getting command args Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/66d0f27f Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/66d0f27f Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/66d0f27f Branch: refs/heads/master Commit: 66d0f27f741baa1be7a192354994cddc0d28d17a Parents: 072656d Author: Jesse MacFadyen Authored: Fri Jul 10 12:18:44 2015 -0700 Committer: Jesse MacFadyen Committed: Fri Jul 10 12:18:44 2015 -0700 ---------------------------------------------------------------------- src/ios/CDVSound.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/66d0f27f/src/ios/CDVSound.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m index af63a48..a23111f 100644 --- a/src/ios/CDVSound.m +++ b/src/ios/CDVSound.m @@ -256,8 +256,8 @@ NSString* callbackId = command.callbackId; #pragma unused(callbackId) - NSString* mediaId = [command.arguments objectAtIndex:0]; - NSNumber* rate = [command.arguments objectAtIndex:1 withDefault:[NSNumber numberWithFloat:1.0]]; + NSString* mediaId = [command argumentAtIndex:0]; + NSNumber* rate = [command argumentAtIndex:1 withDefault:[NSNumber numberWithFloat:1.0]]; if ([self soundCache] != nil) { CDVAudioFile* audioFile = [[self soundCache] objectForKey:mediaId]; @@ -326,8 +326,8 @@ audioFile.player.volume = [audioFile.volume floatValue]; } + audioFile.player.enableRate = YES; if (audioFile.rate != nil) { - audioFile.player.enableRate = YES audioFile.player.rate = [audioFile.rate floatValue]; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org