如何发挥对Android原生相机的声音声音、相机、Android

2023-09-05 10:15:45 作者:吃苦耐勞ヽゝ

我就喜欢玩机相机的快门声音片段相机preVIEW捕获。我指的是声音片段播放时takePicture()被调用。我怎么能呢?有人能走我走过的步骤是什么?

I would like to play native camera shutter sound clip on camera preview capture. I'm referring to the sound clip played when takePicture() is called. How could I that? Can someone walk me through the steps?

谢谢!

推荐答案

此资源介绍如何播放音频文件

This resource explains how to play audio files

http://developer.android.com/intl/德/引导/主题/媒体/ index.html的

您可能会需要提供自己的快门声效果。

You'll probably have to provide your own shutter sound effect.