void AudioALSACaptureDataProviderNormal::OpenDCCalDump()
{
    ALOGV("%s()", __FUNCTION__);
    char DCCalDumpFileName[128];
    sprintf(DCCalDumpFileName, "%s.pcm", "/sdcard/mtklog/audio_dump/DCCalData");

    mDCCalDumpFile = NULL;
    mDCCalDumpFile = AudioOpendumpPCMFile(DCCalDumpFileName, streamin_propty);

    if (mDCCalDumpFile != NULL)
    {
        ALOGD("%s, DCCalDumpFileName = %s", __FUNCTION__, DCCalDumpFileName);
    }
}
void AudioALSAStreamOut::OpenPCMDump(const char *class_name)
{
    ALOGV("%s()", __FUNCTION__);
    char mDumpFileName[128];
    sprintf(mDumpFileName, "%s.%d.%s.pcm", streamout, mDumpFileNum, class_name);

    mPCMDumpFile = NULL;
    mPCMDumpFile = AudioOpendumpPCMFile(mDumpFileName, streamout_propty);

    if (mPCMDumpFile != NULL)
    {
        ALOGD("%s DumpFileName = %s", __FUNCTION__, mDumpFileName);

        mDumpFileNum++;
        mDumpFileNum %= MAX_DUMP_NUM;
    }
}
Ejemplo n.º 3
0
void AudioALSACaptureDataProviderBase::OpenPCMDump(const char *class_name)
{
    ALOGV("%s(), mCaptureDataProviderType=%d", __FUNCTION__, mCaptureDataProviderType);
    char mDumpFileName[128];
    sprintf(mDumpFileName, "%s%d.%s.pcm", streamin, mDumpFileNum, class_name);

    mPCMDumpFile = NULL;
    mPCMDumpFile = AudioOpendumpPCMFile(mDumpFileName, streamin_propty);

    if (mPCMDumpFile != NULL)
    {
        ALOGD("%s DumpFileName = %s", __FUNCTION__, mDumpFileName);

        mDumpFileNum++;
        mDumpFileNum %= MAX_DUMP_NUM;
    }
}
Ejemplo n.º 4
0
void AudioALSAStreamIn::OpenPCMDump()
{
    ALOGV("%s()", __FUNCTION__);
    char Buf[10];
    sprintf(Buf, "%d.pcm", mDumpFileNum);

    mDumpFileName = String8(streamin);
    mDumpFileName.append((const char *)Buf);

    mPCMDumpFile = NULL;
    mPCMDumpFile = AudioOpendumpPCMFile(mDumpFileName, streamin_propty);

    if (mPCMDumpFile != NULL)
    {
        ALOGD("%s DumpFileName = %s", __FUNCTION__, mDumpFileName.string());
    }

    mDumpFileNum++;
    mDumpFileNum %= MAX_DUMP_NUM;

}