Lines Matching refs:audioSource
45 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()
65 audioSource->audioFile, const_cast<int16_t *>(dataEvent.samplesS16), in audioSourceCallback()
72 .handleAudioDataEvent(&audioSource->dataEvent); in audioSourceCallback()
109 chreAudioSource *audioSource) const { in getAudioSource()
114 audioSource->name = source->audioFilename.c_str(); in getAudioSource()
115 audioSource->sampleRate = in getAudioSource()
117 audioSource->minBufferDuration = in getAudioSource()
119 audioSource->maxBufferDuration = in getAudioSource()
121 audioSource->format = source->dataEvent.format; in getAudioSource()