mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 06:32:20 +00:00
Map the correct espeak-ng status codes to EE_NOT_FOUND.
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include "speak_lib.h"
|
||||
#include "espeak_ng.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#if HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
@@ -40,11 +39,12 @@ static espeak_ERROR status_to_espeak_error(espeak_ng_STATUS 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user