Lines Matching refs:mAudioApi
53 if (mAudioApi != nullptr) { in ~PlatformAudio()
56 mAudioApi->close(); in ~PlatformAudio()
63 mAudioApi = chrePalAudioGetApi(CHRE_PAL_AUDIO_API_CURRENT_VERSION); in init()
64 if (mAudioApi != nullptr) { in init()
65 if (!mAudioApi->open(&gChrePalSystemApi, &sAudioCallbacks)) { in init()
67 mAudioApi = nullptr; in init()
69 LOGD("Opened audio PAL version 0x%08" PRIx32, mAudioApi->moduleVersion); in init()
111 if (mAudioApi != nullptr) { in requestAudioDataEvent()
113 success = mAudioApi->requestAudioDataEvent(handle, numSamples, in requestAudioDataEvent()
121 if (mAudioApi != nullptr) { in cancelAudioDataEventRequest()
123 mAudioApi->cancelAudioDataEvent(handle); in cancelAudioDataEventRequest()
128 if (mAudioApi != nullptr) { in releaseAudioDataEvent()
130 mAudioApi->releaseAudioDataEvent(event); in releaseAudioDataEvent()
136 if (mAudioApi != nullptr) { in getSourceCount()
138 sourceCount = mAudioApi->getSourceCount(); in getSourceCount()
147 if (mAudioApi != nullptr) { in getAudioSource()
149 success = mAudioApi->getAudioSource(handle, source); in getAudioSource()