Home
last modified time | relevance | path

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

/system/chre/platform/linux/
Dplatform_audio.cc45 auto *audioSource = static_cast<AudioSource *>(cookie); in audioSourceCallback() local
47 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()
57 static_cast<uint32_t>(audioSource->audioInfo.samplerate), in audioSourceCallback()
58 audioSource->eventDelay); in audioSourceCallback()
59 if (intervalNumSamples > audioSource->numSamples) { in audioSourceCallback()
60 sf_count_t seekAmount = intervalNumSamples - audioSource->numSamples; in audioSourceCallback()
61 sf_seek(audioSource->audioFile, -seekAmount, SEEK_CUR); in audioSourceCallback()
[all …]
Dinit.cc87 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local
90 chre::PlatformAudio::addAudioSource(audioSource); in main()
/system/chre/apps/audio_world/
Daudio_world.cc149 struct chreAudioSource audioSource; in nanoappStart() local
150 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in nanoappStart()
151 LOGI("Found audio source '%s' with %" PRIu32 "Hz %s data", audioSource.name, in nanoappStart()
152 audioSource.sampleRate, in nanoappStart()
153 chre::getChreAudioFormatString(audioSource.format)); in nanoappStart()
155 audioSource.minBufferDuration, audioSource.maxBufferDuration); in nanoappStart()
159 if (chreAudioConfigureSource(i, true, audioSource.minBufferDuration, in nanoappStart()
160 audioSource.minBufferDuration)) { in nanoappStart()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_audio_test.cc152 struct chreAudioSource audioSource; in validateAudioSources() local
153 bool sourceFound = chreAudioGetSource(handle, &audioSource); in validateAudioSources()
159 bool valid = validateAudioSource(handle, audioSource); in validateAudioSources()
161 minimumRequirementMet = validateMinimumAudioSource(audioSource); in validateAudioSources()
187 struct chreAudioSource audioSource; in requestAudioData() local
189 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in requestAudioData()
192 audioSource.minBufferDuration, in requestAudioData()
193 audioSource.minBufferDuration)) { in requestAudioData()
243 struct chreAudioSource audioSource; in handleAudioDataEvent() local
244 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in handleAudioDataEvent()
[all …]
/system/chre/platform/shared/
Dchre_api_audio.cc33 struct chreAudioSource *audioSource) { in chreAudioGetSource() argument
36 if (audioSource != nullptr) { in chreAudioGetSource()
39 .getAudioSource(handle, audioSource); in chreAudioGetSource()
/system/chre/platform/android/
Dplatform_audio.cc161 chreAudioSource *audioSource) const { in getAudioSource()
164 audioSource->name = "Default Android Audio Input"; in getAudioSource()
165 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource()
166 audioSource->minBufferDuration = mMinBufferDuration; in getAudioSource()
167 audioSource->maxBufferDuration = mMaxBufferDuration; in getAudioSource()
168 audioSource->format = mDataEvent.format; in getAudioSource()
/system/chre/apps/test/common/permission_test/src/
Dpermission_test.cc43 struct chreAudioSource audioSource; in checkAudioApis() local
44 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in checkAudioApis()
46 audioSource.minBufferDuration, in checkAudioApis()
47 audioSource.minBufferDuration)) { in checkAudioApis()
/system/chre/apps/power_test/common/
Drequest_manager.cc253 struct chreAudioSource audioSource; in requestAudioAtFastestRate() local
254 bool success = chreAudioGetSource(0 /* handle */, &audioSource); in requestAudioAtFastestRate()
256 LOGI("Found audio source '%s' with %" PRIu32 "Hz %s data", audioSource.name, in requestAudioAtFastestRate()
257 audioSource.sampleRate, in requestAudioAtFastestRate()
258 chre::getChreAudioFormatString(audioSource.format)); in requestAudioAtFastestRate()
260 audioSource.minBufferDuration, audioSource.maxBufferDuration); in requestAudioAtFastestRate()
261 success &= requestAudio(enable, audioSource.minBufferDuration); in requestAudioAtFastestRate()
/system/chre/core/
Daudio_request_manager.cc147 chreAudioSource audioSource; in validateConfigureSourceArguments() local
148 if (!mPlatformAudio.getAudioSource(handle, &audioSource)) { in validateConfigureSourceArguments()
152 } else if (bufferDuration < audioSource.minBufferDuration || in validateConfigureSourceArguments()
153 bufferDuration > audioSource.maxBufferDuration) { in validateConfigureSourceArguments()
156 bufferDuration, audioSource.minBufferDuration, in validateConfigureSourceArguments()
157 audioSource.maxBufferDuration); in validateConfigureSourceArguments()
160 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
/system/chre/platform/include/chre/platform/
Dplatform_audio.h127 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
/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/pal/include/chre/pal/
Daudio.h167 bool (*getAudioSource)(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_4/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);
/system/chre/chre_api/legacy/v1_3/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/include/chre_api/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc184 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource) { in chreAudioGetSource() argument
186 return (fptr != nullptr) ? fptr(handle, audioSource) : false; in chreAudioGetSource()
/system/media/audio/include/system/
Daudio.h1920 static inline bool audio_is_valid_audio_source(audio_source_t audioSource) in audio_is_valid_audio_source() argument
1922 switch (audioSource) { in audio_is_valid_audio_source()