mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 21:33:48 +02:00
Agent needs to be sure audio is ready before trying to use it
This commit is contained in:
parent
3e10bea1ce
commit
2b21ceb17a
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ void Agent::processAgentAvatarAudio() {
|
|||
int16_t numAvailableSamples = AudioConstants::NETWORK_FRAME_SAMPLES_PER_CHANNEL;
|
||||
const int16_t* nextSoundOutput = NULL;
|
||||
|
||||
if (_avatarSound) {
|
||||
if (_avatarSound && _avatarSound->isReady()) {
|
||||
auto audioData = _avatarSound->getAudioData();
|
||||
nextSoundOutput = reinterpret_cast<const int16_t*>(audioData->rawData()
|
||||
+ _numAvatarSoundSentBytes);
|
||||
|
|
Loading…
Reference in a new issue