Home
last modified time | relevance | path

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

/external/srec/srec/Recognizer/src/
DRecognizerImpl.c47 #define SAMPLE_SIZE (16 / CHAR_BIT) /* 16-bits / sample */ macro
756 impl->FRAME_SIZE = impl->sampleRate / FRAMERATE * SAMPLE_SIZE; in SR_RecognizerCreate()
1048 rc = SR_EventLogAudioOpen(impl->eventLog, L("audio/L16"), impl->sampleRate, SAMPLE_SIZE); in SR_RecognizerStartImpl()
1233 …(rc, SR_EventLogTokenInt(impl->eventLog, L("CircularBufferGetSize() (samples)"), n / SAMPLE_SIZE)); in SR_RecognizerStopImpl()
1754 rcBufWrite = CircularBufferWrite(impl->buffer, buffer, *bufferSize * SAMPLE_SIZE); in SR_RecognizerPutAudioImpl()
1763 if (nbWritten % SAMPLE_SIZE != 0) in SR_RecognizerPutAudioImpl()
1768 amountUnwritten = CircularBufferUnwrite(impl->buffer, nbWritten % SAMPLE_SIZE); in SR_RecognizerPutAudioImpl()
1769 passert(amountUnwritten == nbWritten % SAMPLE_SIZE); in SR_RecognizerPutAudioImpl()
1774 if (nbWritten < *bufferSize * SAMPLE_SIZE) in SR_RecognizerPutAudioImpl()
1780 *bufferSize = nbWritten / SAMPLE_SIZE; in SR_RecognizerPutAudioImpl()
[all …]