FS-11876 [core] getter for VAD state
This commit is contained in:
parent
a13196c1c7
commit
38f0f0662f
|
@ -49,6 +49,7 @@ SWITCH_DECLARE(switch_vad_t *) switch_vad_init(int sample_rate, int channels);
|
|||
SWITCH_DECLARE(int) switch_vad_set_mode(switch_vad_t *vad, int mode);
|
||||
SWITCH_DECLARE(void) switch_vad_set_param(switch_vad_t *vad, const char *key, int val);
|
||||
SWITCH_DECLARE(switch_vad_state_t) switch_vad_process(switch_vad_t *vad, int16_t *data, unsigned int samples);
|
||||
SWITCH_DECLARE(switch_vad_state_t) switch_vad_get_state(switch_vad_t *vad);
|
||||
SWITCH_DECLARE(void) switch_vad_reset(switch_vad_t *vad);
|
||||
SWITCH_DECLARE(void) switch_vad_destroy(switch_vad_t **vad);
|
||||
|
||||
|
|
|
@ -241,6 +241,12 @@ SWITCH_DECLARE(switch_vad_state_t) switch_vad_process(switch_vad_t *vad, int16_t
|
|||
return vad->vad_state;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_vad_state_t) switch_vad_get_state(switch_vad_t *vad)
|
||||
{
|
||||
|
||||
return vad->vad_state;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_vad_destroy(switch_vad_t **vad)
|
||||
{
|
||||
if (*vad) {
|
||||
|
|
Loading…
Reference in New Issue