Searched refs:mPcmHandle (Results 1 – 4 of 4) sorted by relevance
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioRecordingLocal.cpp | 30 mPcmHandle(NULL) in AudioRecordingLocal() 57 mPcmHandle = pcm_open(mHwId, 0, PCM_IN, &config); in doPrepare() 58 if (!mPcmHandle || !pcm_is_ready(mPcmHandle)) { in doPrepare() 59 LOGE("Unable to open PCM device(%d) (%s)\n", mHwId, pcm_get_error(mPcmHandle)); in doPrepare() 66 mBufferSize = pcm_get_buffer_size(mPcmHandle); in doPrepare() 81 if (pcm_read(mPcmHandle, buffer->getUnhanledData(), readSize)) { in doPlaybackOrRecord() 82 LOGE("AudioRecordingLocal error %s", pcm_get_error(mPcmHandle)); in doPlaybackOrRecord() 94 pcm_stop(mPcmHandle); in doStop() 99 if (mPcmHandle != NULL) { in releaseHw() 102 pcm_close(mPcmHandle); in releaseHw() [all …]
|
D | AudioPlaybackLocal.cpp | 43 mPcmHandle(NULL) in AudioPlaybackLocal() 70 mPcmHandle = pcm_open(mHwId, 0, PCM_OUT, &config); in doPrepare() 71 if (!mPcmHandle || !pcm_is_ready(mPcmHandle)) { in doPrepare() 72 LOGE("Unable to open PCM device(%d) (%s)\n", mHwId, pcm_get_error(mPcmHandle)); in doPrepare() 87 if (pcm_write(mPcmHandle, buffer->getUnhanledData(), mSizes)) { in doPlaybackOrRecord() 88 LOGE("AudioPlaybackLocal error %s", pcm_get_error(mPcmHandle)); in doPlaybackOrRecord() 103 pcm_* pcm = (pcm_*)mPcmHandle; in doStop() 105 pcm_stop(mPcmHandle); in doStop() 110 if (mPcmHandle != NULL) { in releaseHw() 113 pcm_close(mPcmHandle); in releaseHw() [all …]
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioPlaybackLocal.h | 40 struct pcm* mPcmHandle; variable
|
D | AudioRecordingLocal.h | 40 struct pcm* mPcmHandle; variable
|