Home
last modified time | relevance | path

Searched refs:waveformBuffer (Results 1 – 3 of 3) sorted by relevance

/external/srec/srec/Recognizer/include/
DSR_RecognizerImpl.h128 ESR_ReturnCode WaveformBuffer_Create(WaveformBuffer** waveformBuffer, size_t frame_size);
131 ESR_ReturnCode WaveformBuffer_Reset(WaveformBuffer* waveformBuffer);
134 ESR_ReturnCode WaveformBuffer_GetSize(WaveformBuffer* waveformBuffer, size_t* size);
137 ESR_ReturnCode WaveformBuffer_Write(WaveformBuffer* waveformBuffer, void *data, size_t num_bytes);
140 ESR_ReturnCode WaveformBuffer_Read(WaveformBuffer* waveformBuffer, void *data, size_t* num_bytes);
143 ESR_ReturnCode WaveformBuffer_WindBack(WaveformBuffer* waveformBuffer, const size_t num_bytes);
146 ESR_ReturnCode WaveformBuffer_ParseEndPointedResultAndTrim(WaveformBuffer* waveformBuffer, const LC…
149 ESR_ReturnCode WaveformBuffer_Destroy(WaveformBuffer* waveformBuffer);
152 ESR_ReturnCode WaveformBuffer_SetBufferingState(WaveformBuffer* waveformBuffer, waveform_buffering_…
155 ESR_ReturnCode WaveformBuffer_GetBufferingState(WaveformBuffer* waveformBuffer, waveform_buffering_…
[all …]
/external/srec/srec/Recognizer/src/
DRecognizerResultImpl.c73 if (impl->recogImpl->waveformBuffer->overflow_count == 0) in SR_RecognizerResult_GetWaveform()
75 *waveform = (asr_int16_t*)(((unsigned char *) impl->recogImpl->waveformBuffer->cbuffer) + in SR_RecognizerResult_GetWaveform()
76 sizeof(CircularBuffer) + impl->recogImpl->waveformBuffer->cbuffer->readIdx); in SR_RecognizerResult_GetWaveform()
78 *size = impl->recogImpl->waveformBuffer->read_size; in SR_RecognizerResult_GetWaveform()
84 impl->recogImpl->waveformBuffer->overflow_count); in SR_RecognizerResult_GetWaveform()
86 …(unsigned char *) impl->recogImpl->waveformBuffer->cbuffer) + sizeof(CircularBuffer) + impl->recog… in SR_RecognizerResult_GetWaveform()
87 *size = impl->recogImpl->waveformBuffer->read_size; in SR_RecognizerResult_GetWaveform()
DRecognizerImpl.c691 impl->waveformBuffer = NULL; in SR_RecognizerCreate()
765 CHKLOG(rc, WaveformBuffer_Create(&impl->waveformBuffer, impl->FRAME_SIZE)); in SR_RecognizerCreate()
852 if (impl->waveformBuffer != NULL) in SR_RecognizerDestroyImpl()
854 WaveformBuffer_Destroy(impl->waveformBuffer); in SR_RecognizerDestroyImpl()
855 impl->waveformBuffer = NULL; in SR_RecognizerDestroyImpl()
1029 CHKLOG(rc, WaveformBuffer_Reset(impl->waveformBuffer)); in SR_RecognizerStartImpl()
1040 …CHKLOG(rc, WaveformBuffer_SetBufferingState(impl->waveformBuffer, WAVEFORM_BUFFERING_ON_CIRCULAR)); in SR_RecognizerStartImpl()
1042 CHKLOG(rc, WaveformBuffer_SetBufferingState(impl->waveformBuffer, WAVEFORM_BUFFERING_OFF)); in SR_RecognizerStartImpl()
2029 CHKLOG(rc, WaveformBuffer_GetBufferingState(impl->waveformBuffer, &buffering_state)); in SR_RecognizerCreateResultImpl()
2032 CHKLOG(rc, WaveformBuffer_GetSize(impl->waveformBuffer, &size)); in SR_RecognizerCreateResultImpl()
[all …]