incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [13/14] android commit: added file requirement to constructor, all references to AudioPlayer constructor had direct access to file, so this caused no other changes
Date Thu, 12 Jul 2012 21:44:09 GMT
added file requirement to constructor, all references to AudioPlayer constructor had direct
access to file, so this caused no other changes


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/d16555ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/d16555ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/d16555ec

Branch: refs/heads/master
Commit: d16555ec4b0ae5bcd8e114c9cead313224d5b662
Parents: 3c9415b
Author: Lorin Beer <lorin.beer@nitobi.com>
Authored: Sun Jun 17 22:19:33 2012 -0700
Committer: Lorin Beer <lorin.beer@nitobi.com>
Committed: Sun Jun 17 22:19:33 2012 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/AudioPlayer.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d16555ec/framework/src/org/apache/cordova/AudioPlayer.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AudioPlayer.java b/framework/src/org/apache/cordova/AudioPlayer.java
index e975afa..6437e2d 100755
--- a/framework/src/org/apache/cordova/AudioPlayer.java
+++ b/framework/src/org/apache/cordova/AudioPlayer.java
@@ -74,7 +74,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener,
On
     private String tempFile = null;                 // Temporary recording file name
     
     private MediaPlayer mPlayer = null;             // Audio player object
-   private boolean prepareOnly = false;
+    private boolean prepareOnly = false;
 
     /**
      * Constructor.
@@ -82,9 +82,10 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener,
On
      * @param handler           The audio handler object
      * @param id                The id of this audio player
      */
-    public AudioPlayer(AudioHandler handler, String id) {
+    public AudioPlayer(AudioHandler handler, String id, String src) {
         this.handler = handler;
         this.id = id;
+        this.audioFile = src;
         if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
             this.tempFile = Environment.getExternalStorageDirectory().getAbsolutePath() +
"/tmprecording.mp3";
         } else {


Mime
View raw message