summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Sams <>2009-03-24 20:21:36 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 20:21:36 -0700
commit66e144311dcc35620990bd5d0ec6528b75a840c4 (patch)
tree5d2007c8fc17b2be9da98680b9ee16ae149922eb
parent314f9a79f1395af71f2c2bb629435bfda07a55ae (diff)
downloadLegacyCamera-66e144311dcc35620990bd5d0ec6528b75a840c4.zip
LegacyCamera-66e144311dcc35620990bd5d0ec6528b75a840c4.tar.gz
LegacyCamera-66e144311dcc35620990bd5d0ec6528b75a840c4.tar.bz2
Automated import from //branches/donutburger/...@141469,141469
-rw-r--r--res/raw/camera_click.oggbin5593 -> 0 bytes
-rw-r--r--src/com/android/camera/Camera.java28
2 files changed, 0 insertions, 28 deletions
diff --git a/res/raw/camera_click.ogg b/res/raw/camera_click.ogg
deleted file mode 100644
index 0a769ff..0000000
--- a/res/raw/camera_click.ogg
+++ /dev/null
Binary files differ
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 25d0d81..2300387 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -31,7 +31,6 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
-import android.content.res.AssetFileDescriptor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
@@ -42,7 +41,6 @@ import android.location.Location;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.media.AudioManager;
-import android.media.MediaPlayer;
import android.media.ToneGenerator;
import android.net.Uri;
import android.os.Bundle;
@@ -123,8 +121,6 @@ public class Camera extends Activity implements View.OnClickListener,
private int mViewFinderWidth, mViewFinderHeight;
private boolean mPreviewing = false;
- private MediaPlayer mClickSound;
-
private Capturer mCaptureObject;
private ImageCapture mImageCapture = null;
@@ -301,10 +297,6 @@ public class Camera extends Activity implements View.OnClickListener,
// and so that we can see the full image that was taken.
Size pictureSize = mParameters.getPictureSize();
mSurfaceView.setAspectRatio(pictureSize.width, pictureSize.height);
-
- if (mClickSound != null) {
- mClickSound.start();
- }
}
};
@@ -580,10 +572,6 @@ public class Camera extends Activity implements View.OnClickListener,
mCameraDevice.setParameters(mParameters);
mCameraDevice.takePicture(mShutterCallback, mRawPictureCallback, new JpegPictureCallback(loc));
- // Prepare the sound to play in shutter callback.
- if (mClickSound != null) {
- mClickSound.seekTo(0);
- }
}
public void onSnap() {
@@ -722,22 +710,6 @@ public class Camera extends Activity implements View.OnClickListener,
mShutterButton = (ShutterButton) findViewById(R.id.shutter_button);
mShutterButton.setOnShutterButtonListener(this);
- try {
- mClickSound = new MediaPlayer();
- AssetFileDescriptor afd = getResources().openRawResourceFd(R.raw.camera_click);
-
- mClickSound.setDataSource(afd.getFileDescriptor(),
- afd.getStartOffset(),
- afd.getLength());
-
- if (mClickSound != null) {
- mClickSound.setAudioStreamType(AudioManager.STREAM_ALARM);
- mClickSound.prepare();
- }
- } catch (Exception ex) {
- Log.w(TAG, "Couldn't create click sound", ex);
- }
-
mFocusIndicator = findViewById(R.id.focus_indicator);
mFocusBlinkAnimation = AnimationUtils.loadAnimation(this, R.anim.auto_focus_blink);
mFocusBlinkAnimation.setRepeatCount(Animation.INFINITE);