Closed Bug 1013313 Opened 10 years ago Closed 10 years ago

[Flame][Camera] Two sounds play when turning video record mode on/off

Categories

(Firefox OS Graveyard :: Vendcom, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: amylee, Unassigned)

References

Details

(Whiteboard: ux-tracking, visual design, jian [fxos:media] [POVB])

Attachments

(1 file)

There are two sounds that play when you hit video record on/off. The correct sound is the 2nd one that is played when you hit start video record. Steps to reproduce: 1. Open camera 2. Switch to video record mode 3. Hit record button. You hear two sounds being played one after the other. Tested on Flame device.
Device Nexus 4 BuildID 20140516110816 Version 32.0a1 Git Commit info 2014-05-05 16:59:23 d33e4f15 I tested this on Nexus 4 but this issue is not present there. Infact I could not listen to any sound. On which build was the above issue reported?
I enabled the Setting->Sound->Video Recording and it only plays one sound
Not sure if the Sora issue is related, but I posted some questions in bug 975349 comment 3 and 4.
(In reply to Mishra from comment #2) > I enabled the Setting->Sound->Video Recording and it only plays one sound I just enabled this setting also and I am definitely able to reproduce it on the Flame, but not the Nexus 4. On the Flame, there is a sound that is played when recording starts/stops that seems to be independent (and different) than the start/stop sounds for the Camera app. Mike: I just saw your comments in Bug 975349 -- is it actually possible for the Camera driver to emit sounds on its own!?
Flags: needinfo?(mhabicher)
Justin: yep, see bug 851823.
Flags: needinfo?(mhabicher)
Mike: Here's the requested logcat
Flags: needinfo?(mhabicher)
It certainly looks like the camera library is initiating a sound: 05-21 12:51:56.956 283 619 E QCamera2HWI: [KPI Perf] static int qcamera::QCamera2HardwareInterface::start_recording(camera_device*): E PROFILE_START_RECORDING ... 05-21 12:51:56.966 283 617 D ALSADevice: route: devices 0x2 in mode 0 ... 05-21 12:51:56.966 283 617 D ALSADevice: open: handle 0xb900a4b0, format 0x2 05-21 12:51:56.966 283 617 D ALSADevice: Music case 05-21 12:51:56.966 283 617 D ALSADevice: Device value returned is hw:0,0 05-21 12:51:56.966 283 617 D ALSADevice: flags 0, devName hw:0,0 05-21 12:51:56.966 283 617 D ALSADevice: handle->format: 0x2 05-21 12:51:56.966 283 617 D ALSADevice: setHardwareParams: reqBuffSize 2048 channels 2 sampleRate 48000 05-21 12:51:56.966 283 617 D ALSADevice: setHardwareParams: buffer_size 16384, period_size 2048, period_cnt 8 ...although there's nothing definitive. I'll take a look at the Flame code to see if there's anything obvious in there.
Flags: needinfo?(mhabicher)
There's an interesting idea to resolve this in Bug 858469 that is to simply remove the AOSP system sound files from the device that are being played on recording start/stop.
Summary: [Camera] Two sounds play when turning video record mode on/off → [Flame][Camera] Two sounds play when turning video record mode on/off
The path to the sound file on the Flame that needs to be removed is: /system/media/audio/ui/VideoRecord.ogg
Just FTR, bug 851823 was the same on Nexus S.
Depends on: 851823
root@msm8610:/ # ls -l /system/media/audio/ui/VideoRecord.ogg -rw-r--r-- root root 6483 2014-05-19 21:39 VideoRecord.ogg
/system/media is not part of our build, so this is POVB.
Whiteboard: ux-tracking, visual design, jian [fxos:media] → ux-tracking, visual design, jian [fxos:media] [POVB]
Component: Gaia::Camera → Vendcom
verify with Flame KK base image v162-3, it's fine
(In reply to Mike Lien[:mlien] from comment #14) > verify with Flame KK base image v162-3, it's fine Can we close this then?
Flags: needinfo?(mlien)
It's my mistake, I misunderstood this issue for. Flame KK base image still has "VideoRecording.ogg" If we don't want to hear this voice, we may ask partner to remove from their side Hi Francis, could you help on this?
Flags: needinfo?(mlien) → needinfo?(frlee)
hi youlong, could you please help to remove /system/media/audio/ui/VideoRecord.ogg for next KK build?
Flags: needinfo?(frlee) → needinfo?(youlong.jiang)
Got it.
Flags: needinfo?(youlong.jiang)
verify with Flame KK base image v184 and VideoRecord.ogg is already removed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: