1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 14:56:35 +01:00

AV api changes

This commit is contained in:
Jfreegman
2014-11-30 09:27:45 -05:00
parent 867f041c23
commit e995a1cb69
3 changed files with 7 additions and 9 deletions

View File

@@ -431,12 +431,10 @@ void* thread_poll (void* arg) // TODO: maybe use thread for every input source
int16_t frame[16000];
alcCaptureSamples(device->dhndl, frame, f_size);
if ( device->muted
#ifdef AUDIO
|| (device->enable_VAD && !toxav_has_activity(av, device->call_idx, frame, f_size, device->VAD_treshold))
#endif /* AUDIO */
)
{ unlock; continue; } /* Skip if no voice activity */
if (device->muted) {
unlock;
continue;
}
if ( device->cb ) device->cb(frame, f_size, device->cb_data);
}