Lines Matching refs:dataEvent
47 auto &dataEvent = audioSource->dataEvent; in audioSourceCallback() local
51 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()
144 source->dataEvent.samplesULaw8 = in addAudioSource()
147 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM; in addAudioSource()
148 source->dataEvent.samplesS16 = in addAudioSource()
154 source->dataEvent.version = CHRE_AUDIO_DATA_EVENT_VERSION; in addAudioSource()
155 memset(source->dataEvent.reserved, 0, sizeof(source->dataEvent.reserved)); in addAudioSource()
156 source->dataEvent.handle = static_cast<uint32_t>(gAudioSources.size()); in addAudioSource()
157 source->dataEvent.sampleRate = in addAudioSource()