/system/chre/platform/linux/ |
D | platform_audio.cc | 44 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 …]
|
D | init.cc | 82 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local 85 chre::PlatformAudio::addAudioSource(audioSource); in main()
|
/system/chre/apps/audio_world/ |
D | audio_world.cc | 124 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/ |
D | chre_api_audio.cc | 31 struct chreAudioSource *audioSource) { in chreAudioGetSource() argument 34 if (audioSource != nullptr) { in chreAudioGetSource() 36 .getAudioSource(handle, audioSource); in chreAudioGetSource()
|
/system/chre/platform/android/ |
D | platform_audio.cc | 162 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/ |
D | basic_audio_test.cc | 148 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/ |
D | audio_request_manager.cc | 154 chreAudioSource audioSource; in validateConfigureSourceArguments() local 155 if (!mPlatformAudio.getAudioSource(handle, &audioSource)) { in validateConfigureSourceArguments() 159 } else if (bufferDuration < audioSource.minBufferDuration in validateConfigureSourceArguments() 160 || bufferDuration > audioSource.maxBufferDuration) { in validateConfigureSourceArguments() 162 ",%" PRIu64 "]", bufferDuration, audioSource.minBufferDuration, in validateConfigureSourceArguments() 163 audioSource.maxBufferDuration); in validateConfigureSourceArguments() 166 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
|
/system/chre/platform/include/chre/platform/ |
D | platform_audio.h | 129 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
|
/system/chre/pal/include/chre/pal/ |
D | audio.h | 168 struct chreAudioSource *audioSource);
|
/system/chre/core/include/chre/core/ |
D | audio_request_manager.h | 54 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { in getAudioSource() argument 55 return mPlatformAudio.getAudioSource(handle, audioSource); in getAudioSource()
|
/system/chre/platform/shared/nanoapp/ |
D | nanoapp_support_lib_dso.cc | 133 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/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_2/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|