Closed Bug 1045489 Opened 10 years ago Closed 6 years ago

Playing music is choopy when the A2DP is connected.

Categories

(Firefox OS Graveyard :: AudioChannel, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: scheng, Assigned: scheng)

References

Details

STR:

1.Connect to A2DP device
2.Launch music app and select a file to playback
Assignee: nobody → scheng
FxOS use openSL ndk lib to communitcate with Android audio back-end (AudioTrack/AudioFlinger..). And the framecount is decided by paramenters of Audio HAL. In duplicated mixer mode (codec + A2DP), the framecount value is so huge that takes more time to fill the buffer. We restrict the framecount value in order to decrease the filled buffer time.

We can restrict the minBufCount value[1], in order to get reasonable shared memory buffer.


[1]http://androidxref.com/4.3_r2.1/xref/frameworks/av/services/audioflinger/Threads.cpp#1164
Blocks: 1063422
Not sure if this is related to bug 1038134. In bug 1038134, We found bluedroid btif_media_task got underflow problem, and gecko actually write data to Audioflinger. Thus, we suspect there is huge delay bewteen audio_a2dp_hw (producer) to btif_media_task (consumer). We reduce buffer size, and it improve a lot. 
Then I found this patch because there are some discussion in cyanogenmod community.
But i'm not sure this bug is duplicated of bug 1045489.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.