We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d47d4f7 commit f806871Copy full SHA for f806871
services/camera/libcameraservice/CameraService.cpp
@@ -331,14 +331,8 @@ void CameraService::playSound(sound_kind kind) {
331
Mutex::Autolock lock(mSoundLock);
332
sp<MediaPlayer> player = mSoundPlayer[kind];
333
if (player != 0) {
334
- // do not play the sound if stream volume is 0
335
- // (typically because ringer mode is silent).
336
- int index;
337
- AudioSystem::getStreamVolumeIndex(mAudioStreamType, &index);
338
- if (index != 0) {
339
- player->seekTo(0);
340
- player->start();
341
- }
+ player->seekTo(0);
+ player->start();
342
}
343
344
0 commit comments