Searched refs:dataEvent (Results 1 – 6 of 6) sorted by relevance
47 auto &dataEvent = audioSource->dataEvent; in audioSourceCallback() local51 dataEvent.timestamp = in audioSourceCallback()53 dataEvent.sampleCount = audioSource->numSamples; in audioSourceCallback()55 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioSourceCallback()65 audioSource->audioFile, const_cast<int16_t *>(dataEvent.samplesS16), in audioSourceCallback()66 static_cast<sf_count_t>(dataEvent.sampleCount)); in audioSourceCallback()67 if (readCount != dataEvent.sampleCount) { in audioSourceCallback()72 .handleAudioDataEvent(&audioSource->dataEvent); in audioSourceCallback()121 audioSource->format = source->dataEvent.format; in getAudioSource()143 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW; in addAudioSource()[all …]
36 if (dataEvent.samplesULaw8 != nullptr) { in ~AudioSource()38 const_cast<uint8_t *>(dataEvent.samplesULaw8))); in ~AudioSource()
229 void handleAudioDataEvent(const chreAudioDataEvent *dataEvent) { in handleAudioDataEvent() argument236 if (dataEvent == nullptr) { in handleAudioDataEvent()238 } else if (dataEvent->samplesS16 == nullptr) { in handleAudioDataEvent()240 } else if (dataEvent->sampleCount == 0) { in handleAudioDataEvent()252 if (dataEvent->sampleCount != kNumSamplesExpected) { in handleAudioDataEvent()254 kNumSamplesExpected, dataEvent->sampleCount); in handleAudioDataEvent()256 (kNumSamplesExpected > dataEvent->sampleCount) in handleAudioDataEvent()257 ? (kNumSamplesExpected - dataEvent->sampleCount) in handleAudioDataEvent()258 : (dataEvent->sampleCount - kNumSamplesExpected); in handleAudioDataEvent()275 if (!checkSamplesAllZeros(dataEvent->samplesS16, dataEvent->sampleCount)) { in handleAudioDataEvent()[all …]
46 auto &dataEvent = platformAudio->mDataEvent; in audioReadCallback() local49 dataEvent.timestamp = in audioReadCallback()52 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioReadCallback()78 .handleAudioDataEvent(&dataEvent); in audioReadCallback()
77 chreAudioDataEvent dataEvent; variable
38 const struct chreGnssDataEvent *dataEvent) { in chppGnssSizeOfDataEventFromChre() argument41 dataEvent->measurement_count * sizeof(struct ChppGnssMeasurement); in chppGnssSizeOfDataEventFromChre()