Lines Matching refs:audioSource
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()
66 audioSource->audioFile, in audioSourceCallback()
73 .handleAudioDataEvent(&audioSource->dataEvent); in audioSourceCallback()
111 chreAudioSource *audioSource) const { in getAudioSource()
116 audioSource->name = source->audioFilename.c_str(); in getAudioSource()
117 audioSource->sampleRate = in getAudioSource()
119 audioSource->minBufferDuration = in getAudioSource()
121 audioSource->maxBufferDuration = in getAudioSource()
123 audioSource->format = source->dataEvent.format; in getAudioSource()