summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/EffectsRecorder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/EffectsRecorder.java')
-rw-r--r--src/com/android/camera/EffectsRecorder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java
index b649bc2..678c0b7 100644
--- a/src/com/android/camera/EffectsRecorder.java
+++ b/src/com/android/camera/EffectsRecorder.java
@@ -32,7 +32,7 @@ import android.filterpacks.videosrc.SurfaceTextureSource.SurfaceTextureSourceLis
import android.graphics.SurfaceTexture;
import android.hardware.Camera;
-import android.hardware.CameraSound;
+import android.media.MediaActionSound;
import android.media.MediaRecorder;
import android.media.CamcorderProfile;
import android.os.Handler;
@@ -118,7 +118,7 @@ public class EffectsRecorder {
private boolean mLogVerbose = Log.isLoggable(TAG, Log.VERBOSE);
private static final String TAG = "effectsrecorder";
- private CameraSound mCameraSound;
+ private MediaActionSound mCameraSound;
/** Determine if a given effect is supported at runtime
* Some effects require libraries not available on all devices
@@ -138,7 +138,7 @@ public class EffectsRecorder {
if (mLogVerbose) Log.v(TAG, "EffectsRecorder created (" + this + ")");
mContext = context;
mHandler = new Handler(Looper.getMainLooper());
- mCameraSound = new CameraSound();
+ mCameraSound = new MediaActionSound();
}
public void setCamera(Camera cameraDevice) {
@@ -693,7 +693,7 @@ public class EffectsRecorder {
recorder.setInputValue("maxFileSize", mMaxFileSize);
recorder.setInputValue("maxDurationMs", mMaxDurationMs);
recorder.setInputValue("recording", true);
- mCameraSound.playSound(CameraSound.START_VIDEO_RECORDING);
+ mCameraSound.play(MediaActionSound.START_VIDEO_RECORDING);
mState = STATE_RECORD;
}
@@ -713,7 +713,7 @@ public class EffectsRecorder {
}
Filter recorder = mRunner.getGraph().getFilter("recorder");
recorder.setInputValue("recording", false);
- mCameraSound.playSound(CameraSound.STOP_VIDEO_RECORDING);
+ mCameraSound.play(MediaActionSound.STOP_VIDEO_RECORDING);
mState = STATE_PREVIEW;
}