Home
last modified time | relevance | path

Searched refs:audioSource (Results 1 – 13 of 13) sorted by relevance

/system/chre/platform/linux/
Dplatform_audio.cc44 auto *audioSource = static_cast<AudioSource *>(cookie); in audioSourceCallback() local
46 auto& dataEvent = audioSource->dataEvent; in audioSourceCallback()
49 audioSource->numSamples, in audioSourceCallback()
50 static_cast<uint32_t>(audioSource->audioInfo.samplerate)); in audioSourceCallback()
53 dataEvent.sampleCount = audioSource->numSamples; in audioSourceCallback()
58 static_cast<uint32_t>(audioSource->audioInfo.samplerate), in audioSourceCallback()
59 audioSource->eventDelay); in audioSourceCallback()
60 if (intervalNumSamples > audioSource->numSamples) { in audioSourceCallback()
61 sf_count_t seekAmount = intervalNumSamples - audioSource->numSamples; in audioSourceCallback()
62 sf_seek(audioSource->audioFile, -seekAmount, SEEK_CUR); in audioSourceCallback()
[all …]
Dinit.cc82 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local
85 chre::PlatformAudio::addAudioSource(audioSource); in main()
/system/chre/apps/audio_world/
Daudio_world.cc124 struct chreAudioSource audioSource; in nanoappStart() local
125 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in nanoappStart()
127 audioSource.name, audioSource.sampleRate, in nanoappStart()
128 chre::getChreAudioFormatString(audioSource.format)); in nanoappStart()
130 audioSource.minBufferDuration, audioSource.maxBufferDuration); in nanoappStart()
135 audioSource.minBufferDuration, audioSource.minBufferDuration)) { in nanoappStart()
/system/chre/platform/shared/
Dchre_api_audio.cc31 struct chreAudioSource *audioSource) { in chreAudioGetSource() argument
34 if (audioSource != nullptr) { in chreAudioGetSource()
36 .getAudioSource(handle, audioSource); in chreAudioGetSource()
/system/chre/platform/android/
Dplatform_audio.cc162 chreAudioSource *audioSource) const { in getAudioSource()
165 audioSource->name = "Default Android Audio Input"; in getAudioSource()
166 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource()
167 audioSource->minBufferDuration = mMinBufferDuration; in getAudioSource()
168 audioSource->maxBufferDuration = mMaxBufferDuration; in getAudioSource()
169 audioSource->format = mDataEvent.format; in getAudioSource()
/system/chre/apps/chqts/src/general_test/
Dbasic_audio_test.cc148 struct chreAudioSource audioSource; in validateAudioSources() local
149 bool sourceFound = chreAudioGetSource(handle, &audioSource); in validateAudioSources()
156 bool valid = validateAudioSource(handle, audioSource); in validateAudioSources()
158 minimumRequirementMet = validateMinimumAudioSource(audioSource); in validateAudioSources()
/system/chre/core/
Daudio_request_manager.cc142 chreAudioSource audioSource; in validateConfigureSourceArguments() local
143 if (!mPlatformAudio.getAudioSource(handle, &audioSource)) { in validateConfigureSourceArguments()
147 } else if (bufferDuration < audioSource.minBufferDuration in validateConfigureSourceArguments()
148 || bufferDuration > audioSource.maxBufferDuration) { in validateConfigureSourceArguments()
150 ",%" PRIu64 "]", bufferDuration, audioSource.minBufferDuration, in validateConfigureSourceArguments()
151 audioSource.maxBufferDuration); in validateConfigureSourceArguments()
154 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
/system/chre/platform/include/chre/platform/
Dplatform_audio.h129 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
/system/chre/pal/include/chre/pal/
Daudio.h168 struct chreAudioSource *audioSource);
/system/chre/core/include/chre/core/
Daudio_request_manager.h54 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { in getAudioSource() argument
55 return mPlatformAudio.getAudioSource(handle, audioSource); in getAudioSource()
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc133 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource) { in chreAudioGetSource() argument
135 return (fptr != nullptr) ? fptr(handle, audioSource) : false; in chreAudioGetSource()
/system/chre/chre_api/include/chre_api/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_2/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);