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)
Tracking
(blocking-b2g:1.3T+, 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)
132.23 KB,
audio/x-m4a
|
Details | |
152.16 KB,
text/x-log
|
Details | |
597 bytes,
patch
|
kinetik
:
review+
fabrice
:
approval-gaia-v1.4+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•11 years ago
|
||
attached adb logcat. Test starts: 04-07 10:39:15.420
Reporter | ||
Updated•11 years ago
|
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → Other
Updated•11 years ago
|
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.
status-b2g-v1.3T:
--- → affected
Keywords: 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?
Comment 6•11 years ago
|
||
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)
Comment 7•11 years ago
|
||
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)
Comment 8•11 years ago
|
||
(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)
Comment 11•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #10)
> Not yet.
Thanks. Pls help to make this issue clear in time.
We need it.
Assignee | ||
Comment 12•11 years ago
|
||
(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)
Assignee | ||
Comment 13•11 years ago
|
||
wayen, please review this patch.
Assignee | ||
Updated•11 years ago
|
Attachment #8404367 -
Flags: review?(waychen)
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.3T?
Comment 14•11 years ago
|
||
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)
Comment 15•11 years ago
|
||
(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 16•11 years ago
|
||
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+
Updated•11 years ago
|
Keywords: checkin-needed
Comment 17•11 years ago
|
||
triage: m4a should be supported. 1.3T+
blocking-b2g: 1.3T? → 1.3T+
Flags: needinfo?(jcheng)
Comment 18•11 years ago
|
||
Assignee: nobody → james.zhang
Keywords: checkin-needed
Comment 19•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 20•11 years ago
|
||
Need land the patch on v1.3t.
Flags: needinfo?(jcheng)
Flags: needinfo?(fabrice)
Comment 21•11 years ago
|
||
Flags: needinfo?(fabrice)
Updated•11 years ago
|
Flags: needinfo?(jcheng)
Updated•11 years ago
|
Comment 22•11 years ago
|
||
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
Updated•11 years ago
|
Flags: needinfo?(styang)
Assignee | ||
Updated•11 years ago
|
status-b2g-v1.4:
--- → affected
Whiteboard: [sprd311021][sprd297173]
Assignee | ||
Updated•11 years ago
|
Attachment #8404367 -
Flags: approval-gaia-v1.4?(fabrice)
Comment 23•11 years ago
|
||
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+
Comment 24•11 years ago
|
||
status-b2g-v2.0:
--- → fixed
status-firefox29:
--- → wontfix
status-firefox30:
--- → wontfix
status-firefox31:
--- → fixed
Target Milestone: --- → 1.4 S5 (11apr)
Assignee | ||
Comment 25•11 years ago
|
||
(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.
Comment 26•11 years ago
|
||
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.
Description
•