| #include "speak_lib.h" | #include "speak_lib.h" | ||||
| #include "espeak_ng.h" | #include "espeak_ng.h" | ||||
| #include <errno.h> | |||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #if HAVE_STDINT_H | #if HAVE_STDINT_H | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| { | { | ||||
| switch (status) | switch (status) | ||||
| { | { | ||||
| case ENS_OK: return EE_OK; | |||||
| case ENOENT: return EE_NOT_FOUND; | |||||
| case ENS_VOICE_NOT_FOUND: return EE_NOT_FOUND; | |||||
| case ENS_FIFO_BUFFER_FULL: return EE_BUFFER_FULL; | |||||
| default: return EE_INTERNAL_ERROR; | |||||
| case ENS_OK: return EE_OK; | |||||
| case ENS_VOICE_NOT_FOUND: return EE_NOT_FOUND; | |||||
| case ENS_MBROLA_NOT_FOUND: return EE_NOT_FOUND; | |||||
| case ENS_MBROLA_VOICE_NOT_FOUND: return EE_NOT_FOUND; | |||||
| case ENS_FIFO_BUFFER_FULL: return EE_BUFFER_FULL; | |||||
| default: return EE_INTERNAL_ERROR; | |||||
| } | } | ||||
| } | } | ||||