Closed
Bug 977481
Opened 11 years ago
Closed 7 years ago
Dump PCM data from AudioFlinger
Categories
(Firefox OS Graveyard :: Hardware, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: xwaynec, Unassigned)
Details
1. Find AudioFlinger source code, Each project has different location.
According Tarako, source code are in frameworks/base/services/audioflnger
2. Add some code to dump audio pcm data at AudioFlinger::MixerThread::threadLoop()
// open file
FILE *dump_file;
dump_file = fopen(“data/audio_out.pcm", "a+b");
if (!dump_file) {
ALOGE("Failed to open data/audio_out.pcm");
}
// write data
fwrite((uint8_t *)buffer, bytes, 1, dump_file);
// close data
fclose(dump_file);
3. After finished the capture scenario, use adb dump data to pc.
i. adb pull data/audio_out.pcm ~/Desktop/audio_out.pcm
4. download “Audacity” and execute it
5. import pcm data to application
Comment 1•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•