Closed Bug 992854 Opened 11 years ago Closed 11 years ago

[tarako] No sound when play some specific m4a music

Categories

(Firefox OS Graveyard :: AudioChannel, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+, firefox29 wontfix, firefox30 wontfix, firefox31 fixed, b2g-v1.3T verified, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
1.4 S5 (11apr)
blocking-b2g 1.3T+
Tracking Status
firefox29 --- wontfix
firefox30 --- wontfix
firefox31 --- fixed
b2g-v1.3T --- verified
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: angelc04, Assigned: james.zhang)

Details

(Whiteboard: [sprd311021][sprd297173])

Attachments

(3 files)

Attached audio 0102_88khz_75kbps.m4a
Steps to reproduce ------------------------------------------------------ 1. Download attached music 2. Put music to Device 3. Launch Music and select the music to play --> There is no sound coming out. Test Build ------------------------------------------------------ Gaia fbf194db193f12b0db070c87bc99f6bb42e28dc0 Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/5ff1d2a9fbc1 BuildID 20140404164001 Version 28.1 ro.build.version.incremental=eng.cltbld.20140404.201608 ro.build.date=Fri Apr 4 20:16:14 EDT 2014 Buri works fine.
Attached file adb logcat
attached adb logcat. Test starts: 04-07 10:39:15.420
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → Other
Flags: needinfo?(brsun)
Looking at the log, maybe it has to do with the sample rate? I think we might need to take a look at a variety of sample rates if this is the case... 10:39:29.800 I/SPRDAACDecoder( 87): sampleRate : 44100 ... 04-07 10:39:29.830 I/SPRDAACDecoder( 87): aac sampleRate is 44100, but now is 88200
I think we need to figure out if it is the sample rate and what sample rates we support currently. qawanted.
i tacked the codes and logs. It's in gecko/media/libcubeb/cubeb_opensl.c, in function opensl_stream_init, code is : obviously the opensl limits the rate between 8k-48kHZ // if (stream_params.rate < 8000 || stream_params.rate > 48000 || stream_params.channels < 1 || stream_params.channels > 32 || latency < 1 || latency > 2000) { return CUBEB_ERROR_INVALID_FORMAT; }
I just changed the rate limit to 8k-88.2k , it worked fine. Is it better to use audiotrack just like android?
Hi Matthew, Currently we limit the sampling rate between 8k~48kHz in opensl_stream_init(). Do we have any concern on enlarging the range of min/max limit?
Flags: needinfo?(brsun) → needinfo?(kinetik)
I don't know of any, AFAIK it's just a sanity check but it seems redundant since we have one in the higher-level cubeb_stream_init now (which uses the wider limit of 1..192kHz).
Flags: needinfo?(kinetik)
(In reply to Naoki Hirata :nhirata (please use needinfo instead of cc) from comment #3) > I think we need to figure out if it is the sample rate and what sample rates > we support currently. qawanted. I don't think I'd send that over to QA Wanted actually - I'd ask a media dev for that info. However, I think we should keep the qawanted request to determine if this reproduces on 1.3.
(In reply to Jason Smith [:jsmith] from comment #8) Hi jason, have u got any reply from media dev?
Flags: needinfo?(jsmith)
Not yet.
Flags: needinfo?(jsmith)
(In reply to Jason Smith [:jsmith] from comment #10) > Not yet. Thanks. Pls help to make this issue clear in time. We need it.
(In reply to Ming from comment #4) > i tacked the codes and logs. > > It's in gecko/media/libcubeb/cubeb_opensl.c, in function opensl_stream_init, > code is : > obviously the opensl limits the rate between 8k-48kHZ // > if (stream_params.rate < 8000 || stream_params.rate > 48000 || > stream_params.channels < 1 || stream_params.channels > 32 || > latency < 1 || latency > 2000) { > return CUBEB_ERROR_INVALID_FORMAT; > } Wayen, please comment here.
Flags: needinfo?(waychen)
Flags: needinfo?(styang)
Flags: needinfo?(jcheng)
wayen, please review this patch.
Attachment #8404367 - Flags: review?(waychen)
blocking-b2g: --- → 1.3T?
Comment on attachment 8404367 [details] [diff] [review] bug255119_support_88200_rate.patch Hi Matthew, Could you help to review this patch? Thanks Sincerely, Wayne
Attachment #8404367 - Flags: review?(waychen) → review?(kinetik)
Flags: needinfo?(waychen)
(In reply to James Zhang from comment #13) > Created attachment 8404367 [details] [diff] [review] > bug255119_support_88200_rate.patch > > wayen, please review this patch. Just a note: AudioStream keep one second audio buffer to ensure play smoothly. The sample rate is higher, the buffer size is larger. http://dxr.mozilla.org/mozilla-central/source/content/media/AudioStream.cpp#426 In this kind of memory constricted device (eg. tarako), there is more probability to encounter OOM phenomenon.
Comment on attachment 8404367 [details] [diff] [review] bug255119_support_88200_rate.patch Review of attachment 8404367 [details] [diff] [review]: ----------------------------------------------------------------- I'd rather just remove the invalid format check completely and let the higher-level cubeb_stream_init handle it, but this is simple so I'm fine with taking it as is.
Attachment #8404367 - Flags: review?(kinetik) → review+
Keywords: checkin-needed
triage: m4a should be supported. 1.3T+
blocking-b2g: 1.3T? → 1.3T+
Flags: needinfo?(jcheng)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Need land the patch on v1.3t.
Flags: needinfo?(jcheng)
Flags: needinfo?(fabrice)
Flags: needinfo?(jcheng)
Keywords: qawanted
Fixed on todays 1.3T build. 1.3T Environmental Variables: Device: Tarako 1.3T MOZ BuildID: 20140428014001 Gaia: 8895b180ed636069473703d0e7b73086989601ce Gecko: 7caf4b5abfce Version: 28.1 Firmware Version: sp6821
Flags: needinfo?(styang)
Whiteboard: [sprd311021][sprd297173]
Attachment #8404367 - Flags: approval-gaia-v1.4?(fabrice)
Comment on attachment 8404367 [details] [diff] [review] bug255119_support_88200_rate.patch Review of attachment 8404367 [details] [diff] [review]: ----------------------------------------------------------------- James, I guess you need that for Dolphin?
Attachment #8404367 - Flags: approval-gaia-v1.4?(fabrice) → approval-gaia-v1.4+
(In reply to Fabrice Desré [:fabrice] from comment #23) > Comment on attachment 8404367 [details] [diff] [review] > bug255119_support_88200_rate.patch > > Review of attachment 8404367 [details] [diff] [review]: > ----------------------------------------------------------------- > > James, I guess you need that for Dolphin? Thank you.
The limit now is in libopenSLES [frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:android_audioPlayer_checkSourceSink]. I will change the limit to 8k-88.2khz.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: