Open GoogleCodeExporter opened 9 years ago
I found the cause, it is the google android bugs:
While the recorder record the AAC to fd, the AACWriter does not init the
profile(only init it while record to file).
As below:
mAACProfile(OMX_AUDIO_AACObjectLC) not init in the AACWriter(fd).
AACWriter::AACWriter(const char *filename)
: mFd(-1),
mInitCheck(NO_INIT),
mStarted(false),
mPaused(false),
mResumed(false),
mChannelCount(-1),
mSampleRate(-1),
mAACProfile(OMX_AUDIO_AACObjectLC) {
ALOGV("AACWriter Constructor");
mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
if (mFd >= 0) {
mInitCheck = OK;
}
}
AACWriter::AACWriter(int fd)
: mFd(dup(fd)),
mInitCheck(mFd < 0? NO_INIT: OK),
mStarted(false),
mPaused(false),
mResumed(false),
mChannelCount(-1),
mSampleRate(-1) {
}
Original comment by phymurb...@gmail.com
on 4 Mar 2015 at 11:44
Original issue reported on code.google.com by
phymurb...@gmail.com
on 4 Mar 2015 at 10:32