Skip to content

Include/Errors.h

A list of all possible Audio Weaver errors and their IDs.

Defines

Name
E_SUCCESS
OK result.
E_HEAP_INDEX_RANGE
Attempt to reference a non-existent heap.
E_MALLOC_SIZE_TOO_BIG
Attempt to allocate more storage with awe_fwMalloc() than exists.
E_CONSTRUCTOR_ARGUMENT_COUNT
A constructor was called with the wrong number of arguments.
E_CLASS_INDEX_RANGE
Attempt to reference a non-existent class.
E_CLASS_NOT_FOUND
Can't find the specified class.
E_MODULE_ALREADY_OWNED
Attempt to bind a module instance to a layout that is already owned by a layout.
E_ASSIGN_ADDRESS_OUT_OF_RANGE
Attempt to assign outside the bounds of the heap.
E_MODULE_NOT_WIRE
A wire input given to a module constructor is not a wire.
E_INPUTS_MUST_MATCH_OUTPUTS
Many modules require the number of inputs and outputs to be the same.
E_INPUTS_MUST_BE_SAME_PINTYPE
Many modules require that all inputs be of the same pintype.
E_MUST_HAVE_INPUTS
Many modules require at leat one input.
E_MUST_HAVE_OUTPUTS
Many modules require at leat one output.
E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS
Many modules require the input and output types to match in pairs.
E_NOT_MODULE
The module given is not a module.
E_INPUT_OUTPUT_COUNT
Module with fixed inputs/outputs has wrong count.
E_PARAMETER_ERROR
Module arguments have an error.
E_NO_MORE_OBJECTS
awe_fwGetFirstLayoutObject() or awe_fwGetNextObject() reached end of object chain.
E_NOT_OBJECT_POINTER
Object pointer given to awe_fwGetNextObject() does not point to a module instance.
E_NOT_INPUT_PIN
Object pointer given to ClassInputWire_Constructor() is not an input pin.
E_IOPIN_IN_USE
The I/O pin given to ClassXXWire_Constructor() is already in use.
E_PIN_TYPES_NOT_COMPATIBLE
The wire and I/O pin type are not compatible.
E_PIN_SIZES_NOT_COMPATIBLE
The wire and I/O pin sizes are not compatible.
E_NOT_OUTPUT_PIN
Object pointer given to ClassOutpuWire_Constructor() is not an output pin.
E_NO_MORE_IOPINS
awe_fwGetFirstIO() or awe_fwGetNextIO() reached end of object chain.
E_NO_LAYOUTS
Master pump function found no layouts to pump.
E_MUST_HAVE_ONE_OUTPUT
For modules with a hardwired single output (like RMS).
E_OUTPUT_MUST_BE_SINGLE_VALUE
For modules that need an output with 1 single output value (like RMS).
E_INCOMPATIBLE_BLOCK_SIZES
For containers, the contained module required sizes don't match.
E_WIRE_INDEX_RANGE
A write index in a vector is out of range.
E_NO_EVENT_HANDLER
There is no event handler for this module.
E_AUDIO_ALREADY_STARTED
Audio_Start() called with the audio already running.
E_AUDIO_ALREADY_STOPPED
Audio_Stop() called with the audio already stopped.
E_COMMUNICATIONS_ERROR
Framework communications failure.
E_SALT_OBJECT_NOTFOUND
Standalone tuning definitions.
E_SALT_FIELD_RANGE
Salt field range error.
E_SALT_STATE_RANGE
Salt state range error
E_NOT_IMPLEMENTED_IN_RS232
Attempt to pump for RS232.
E_BADPACKET
Bad packet - invalid argument.
E_BADFILE
Filename NULL.
E_FILENAMELENGTH
Filename length > 55.
E_CANTCREATE
Can't create file.
E_CANTOPEN
Can't open the specified file.
E_NOSUCHFILE
The specified file does not exist.
E_IOERROR
An error occurred accessing resource.
E_FIND_FIRST_FILE_NOT_CALLED
Find First File must be called First.
E_NO_MORE_FILES
No more files found.
E_BAD_FILENAME
The filename is not valid.
E_FILE_ALREADY_OPEN
Cannot perform operation while a file is open.
E_FILE_NOT_FOUND
File was not found.
E_ILLEGAL_FILE_ATTRIBUTE
File attribut byte is invalid.
E_FILE_ALREADY_EXISTS
File already exists.
E_NO_OPEN_FILE
There is no file open.
E_OUT_OF_SPACE
Out of file system space.
E_END_OF_FILE
End of file.
E_ERROR_READING_FLASH_MEMORY
Read flash memory failed.
E_ERROR_WRITING_FLASH_MEMORY
Write flash memory failed.
E_ERROR_ERASING_FLASH_MEMORY
Erase flash memory failed.
E_COMMAND_NOT_IMPLEMENTED
Command not implemented on this platform.
E_INTERNAL_MODULE_ALLOCATION_FAILURE
Internal subsystem allocation failure.
E_HARDWARE_FAILURE
General hardware related failure.
E_REGISTER_INVALID
Invalid register to read.
E_REGISTER_BUSY
Register cannot be accessed at this time.
E_REGISTER_NOT_IMPLEMENTED
Register function not implemented.
E_REGISTER_READ_ONLY
Trying to write a read-only register.
E_NO_HEAP_MEMORY
Attempt to create heap failed.
E_ARGUMENT_ERROR
Argument value invalid.
E_DUPLICATE_ID
Attempt to set duplicate ID with SetID.
E_ID_OUT_OF_RANGE
Attempt to use ID outside 1..32767 with SetID.
E_READ_ONLY
Attempt to modify read-only object header.
E_BAD_HEAP_POINTER
Pointer to heap is NULL.
E_HEAPS_ALREADY_INITIALIZED
Heaps already initialized.
E_HEAPS_NOT_INITIALIZED
Heaps not yet initialized.
E_EXCEPTION
CFramework exception (null pointer?).
E_MESSAGE_LENGTH_TOO_LONG
Bad packet - message length is too long.
E_CRC_ERROR
Bad packet - CRC error.
E_UNKNOWN_MESSAGE
Bad packet - invalid command ID.
E_MSG_TIMEOUT
Message timed out (C6 only).
E_OBJECT_ID_NOT_FOUND
Object ID not found.
E_PIN_ID_NOT_FOUND
I/O pin not found.
E_NOT_OBJECT
Not a valid object.
E_BAD_MEMBER_INDEX
Member index is out of object bounds.
E_CLASS_NOT_SUPPORTED
Attempt to access member of wrong class type.
E_PUMP_OVERRUN
Attempt to pump when awe_fwTick() was not called.
E_NOT_V7
Target is not a V7 target - legacy.
E_NO_FRAMEWORK
The framework does not exist.
E_NO_CORE
The specified core does not exist.
E_IOPIN_TOO_MANY
Too many wires bound to pin.
E_WIRE_ALREADY_BOUND
Attempt to bind a wire already bound.
E_WIRES_NOT_SPECIFIED
Required wires not specified.
E_NOT_CREATED
AWE instance not created.
E_ALREADY_CREATED
AWE instance already created.
E_AUDIO_NOT_STARTED
Can't pump, audio not started.
E_LINKEDLIST_CORRUPT
Module instance linked list is corrupted.
E_MODULE_NOT_INITIALIZED
The module was not initialized.
E_INVALID_FILE
The file content is invalid.
E_NO_MORE_ROUTES
There are no more routes.
E_PUMP_NO_LAYOUTS
Attempt to pump when there is no layout.
E_NULL_PACKET_BUFFER_POINTER
Packet Buffer Pointer not initialized.
E_NULL_REPLY_BUFFER_POINTER
Reply Buffer Pointer not initialized.
E_ZERO_PACKET_BUFFER_LENGTH
Packet buffer length is 0.
E_CALLBACK_NOT_REALTIME
Audio Callback is not at realtime priority.
E_PRIORITY_NOT_HI_ENOUGH
Audio Callback is not at a high enough priority to support cascading pump threads.
E_SCHEDULER_PERMISSION_DENIED
Could not get/set the scheduler priority of callback due to bad permissions.
E_INVALID_PORTNO
Port number passed into aweOS tuning interface API must be within 15002-15092 and even.
E_CANNOT_CREATE_THREAD
Could not create thread or process using OS constructs.
E_UNEXPECTED_EOF
Loading from array reported EOF early.
E_OFF_ARRAY_END
Attempt to allocate wire from buffer pool off end.
E_NO_MORE_THREADS
Attempt to create thread when all in use.
E_SOCKET_OPEN_FAIL
AWECoreOS integrated socket failed to open.
E_INSTANCE_POINTER_INVALID
Failed to pass required instance to module user constructor.
E_SYSCALL
System call unavailable on target.
E_INVALID_ALIGN_VALUE
Tried to malloc with an invalid alignment value (possibly 0)
E_INVALID_NUM_INSTANCES
numProcessingInstances registered lies outside valid range
E_OUT_OF_RANGE_INSTANCE_ID
Instance ID registered lies outside numProcessingInstances value set by user.
E_INVALID_SHARED_HEAP_LENGTH
Shared heap size either invalid or unregistered by user.
E_MULTI_PACKET_WAITING
Multi-instance packet has been forwarded but has not yet been serviced.
E_INVALID_LAYOUT_INDEX
Invalid layout index.
E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED
Multi-split AWB not started.
E_NO_LOGGING_CALLBACK_REGISTERED
Logging callback not registered.
E_NO_LOGGING_SUPPORT
Logging callbacks not supported.
E_FILE_NAME_TOO_BIG
Error code returned when file name is too big.
E_CUSTOM_MODULE_ERROR
Custom module generic error code.

Macros Documentation

define E_SUCCESS

#define E_SUCCESS (0)

OK result.

define E_HEAP_INDEX_RANGE

#define E_HEAP_INDEX_RANGE (-1)

Attempt to reference a non-existent heap.

define E_MALLOC_SIZE_TOO_BIG

#define E_MALLOC_SIZE_TOO_BIG (-2)

Attempt to allocate more storage with awe_fwMalloc() than exists.

define E_CONSTRUCTOR_ARGUMENT_COUNT

#define E_CONSTRUCTOR_ARGUMENT_COUNT (-4)

A constructor was called with the wrong number of arguments.

define E_CLASS_INDEX_RANGE

#define E_CLASS_INDEX_RANGE (-5)

Attempt to reference a non-existent class.

define E_CLASS_NOT_FOUND

#define E_CLASS_NOT_FOUND (-6)

Can't find the specified class.

define E_MODULE_ALREADY_OWNED

#define E_MODULE_ALREADY_OWNED (-7)

Attempt to bind a module instance to a layout that is already owned by a layout.

define E_ASSIGN_ADDRESS_OUT_OF_RANGE

#define E_ASSIGN_ADDRESS_OUT_OF_RANGE (-8)

Attempt to assign outside the bounds of the heap.

define E_MODULE_NOT_WIRE

#define E_MODULE_NOT_WIRE (-9)

A wire input given to a module constructor is not a wire.

define E_INPUTS_MUST_MATCH_OUTPUTS

#define E_INPUTS_MUST_MATCH_OUTPUTS (-10)

Many modules require the number of inputs and outputs to be the same.

define E_INPUTS_MUST_BE_SAME_PINTYPE

#define E_INPUTS_MUST_BE_SAME_PINTYPE (-11)

Many modules require that all inputs be of the same pintype.

define E_MUST_HAVE_INPUTS

#define E_MUST_HAVE_INPUTS (-12)

Many modules require at leat one input.

define E_MUST_HAVE_OUTPUTS

#define E_MUST_HAVE_OUTPUTS (-13)

Many modules require at leat one output.

define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS

#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS (-14)

Many modules require the input and output types to match in pairs.

define E_NOT_MODULE

#define E_NOT_MODULE (-15)

The module given is not a module.

define E_INPUT_OUTPUT_COUNT

#define E_INPUT_OUTPUT_COUNT (-16)

Module with fixed inputs/outputs has wrong count.

define E_PARAMETER_ERROR

#define E_PARAMETER_ERROR (-17)

Module arguments have an error.

define E_NO_MORE_OBJECTS

#define E_NO_MORE_OBJECTS (-18)

awe_fwGetFirstLayoutObject() or awe_fwGetNextObject() reached end of object chain.

define E_NOT_OBJECT_POINTER

#define E_NOT_OBJECT_POINTER (-19)

Object pointer given to awe_fwGetNextObject() does not point to a module instance.

define E_NOT_INPUT_PIN

#define E_NOT_INPUT_PIN (-20)

Object pointer given to ClassInputWire_Constructor() is not an input pin.

define E_IOPIN_IN_USE

#define E_IOPIN_IN_USE (-21)

The I/O pin given to ClassXXWire_Constructor() is already in use.

define E_PIN_TYPES_NOT_COMPATIBLE

#define E_PIN_TYPES_NOT_COMPATIBLE (-22)

The wire and I/O pin type are not compatible.

define E_PIN_SIZES_NOT_COMPATIBLE

#define E_PIN_SIZES_NOT_COMPATIBLE (-23)

The wire and I/O pin sizes are not compatible.

define E_NOT_OUTPUT_PIN

#define E_NOT_OUTPUT_PIN (-24)

Object pointer given to ClassOutpuWire_Constructor() is not an output pin.

define E_NO_MORE_IOPINS

#define E_NO_MORE_IOPINS (-25)

awe_fwGetFirstIO() or awe_fwGetNextIO() reached end of object chain.

define E_NO_LAYOUTS

#define E_NO_LAYOUTS (-26)

Master pump function found no layouts to pump.

define E_MUST_HAVE_ONE_OUTPUT

#define E_MUST_HAVE_ONE_OUTPUT (-27)

For modules with a hardwired single output (like RMS).

define E_OUTPUT_MUST_BE_SINGLE_VALUE

#define E_OUTPUT_MUST_BE_SINGLE_VALUE (-28)

For modules that need an output with 1 single output value (like RMS).

define E_INCOMPATIBLE_BLOCK_SIZES

#define E_INCOMPATIBLE_BLOCK_SIZES (-29)

For containers, the contained module required sizes don't match.

define E_WIRE_INDEX_RANGE

#define E_WIRE_INDEX_RANGE (-30)

A write index in a vector is out of range.

define E_NO_EVENT_HANDLER

#define E_NO_EVENT_HANDLER (-31)

There is no event handler for this module.

define E_AUDIO_ALREADY_STARTED

#define E_AUDIO_ALREADY_STARTED (-32)

Audio_Start() called with the audio already running.

define E_AUDIO_ALREADY_STOPPED

#define E_AUDIO_ALREADY_STOPPED (-33)

Audio_Stop() called with the audio already stopped.

define E_COMMUNICATIONS_ERROR

#define E_COMMUNICATIONS_ERROR (-34)

Framework communications failure.

define E_SALT_OBJECT_NOTFOUND

#define E_SALT_OBJECT_NOTFOUND (-35)

Standalone tuning definitions.

define E_SALT_FIELD_RANGE

#define E_SALT_FIELD_RANGE (-36)

Salt field range error.

define E_SALT_STATE_RANGE

#define E_SALT_STATE_RANGE (-37)

Salt state range error

define E_NOT_IMPLEMENTED_IN_RS232

#define E_NOT_IMPLEMENTED_IN_RS232 (-38)

Attempt to pump for RS232.

define E_BADPACKET

#define E_BADPACKET (-39)

Bad packet - invalid argument.

define E_BADFILE

#define E_BADFILE (-40)

Filename NULL.

define E_FILENAMELENGTH

#define E_FILENAMELENGTH (-41)

Filename length > 55.

define E_CANTCREATE

#define E_CANTCREATE (-42)

Can't create file.

define E_CANTOPEN

#define E_CANTOPEN (-43)

Can't open the specified file.

define E_NOSUCHFILE

#define E_NOSUCHFILE (-44)

The specified file does not exist.

define E_IOERROR

#define E_IOERROR (-45)

An error occurred accessing resource.

define E_FIND_FIRST_FILE_NOT_CALLED

#define E_FIND_FIRST_FILE_NOT_CALLED (-46)

Find First File must be called First.

define E_NO_MORE_FILES

#define E_NO_MORE_FILES (-47)

No more files found.

define E_BAD_FILENAME

#define E_BAD_FILENAME (-48)

The filename is not valid.

define E_FILE_ALREADY_OPEN

#define E_FILE_ALREADY_OPEN (-49)

Cannot perform operation while a file is open.

define E_FILE_NOT_FOUND

#define E_FILE_NOT_FOUND (-50)

File was not found.

define E_ILLEGAL_FILE_ATTRIBUTE

#define E_ILLEGAL_FILE_ATTRIBUTE (-51)

File attribut byte is invalid.

define E_FILE_ALREADY_EXISTS

#define E_FILE_ALREADY_EXISTS (-52)

File already exists.

define E_NO_OPEN_FILE

#define E_NO_OPEN_FILE (-53)

There is no file open.

define E_OUT_OF_SPACE

#define E_OUT_OF_SPACE (-54)

Out of file system space.

define E_END_OF_FILE

#define E_END_OF_FILE (-55)

End of file.

define E_ERROR_READING_FLASH_MEMORY

#define E_ERROR_READING_FLASH_MEMORY (-56)

Read flash memory failed.

define E_ERROR_WRITING_FLASH_MEMORY

#define E_ERROR_WRITING_FLASH_MEMORY (-57)

Write flash memory failed.

define E_ERROR_ERASING_FLASH_MEMORY

#define E_ERROR_ERASING_FLASH_MEMORY (-58)

Erase flash memory failed.

define E_COMMAND_NOT_IMPLEMENTED

#define E_COMMAND_NOT_IMPLEMENTED (-59)

Command not implemented on this platform.

define E_INTERNAL_MODULE_ALLOCATION_FAILURE

#define E_INTERNAL_MODULE_ALLOCATION_FAILURE (-60)

Internal subsystem allocation failure.

define E_HARDWARE_FAILURE

#define E_HARDWARE_FAILURE (-61)

General hardware related failure.

define E_REGISTER_INVALID

#define E_REGISTER_INVALID (-62)

Invalid register to read.

define E_REGISTER_BUSY

#define E_REGISTER_BUSY (-63)

Register cannot be accessed at this time.

define E_REGISTER_NOT_IMPLEMENTED

#define E_REGISTER_NOT_IMPLEMENTED (-64)

Register function not implemented.

define E_REGISTER_READ_ONLY

#define E_REGISTER_READ_ONLY (-65)

Trying to write a read-only register.

define E_NO_HEAP_MEMORY

#define E_NO_HEAP_MEMORY (-66)

Attempt to create heap failed.

define E_ARGUMENT_ERROR

#define E_ARGUMENT_ERROR (-67)

Argument value invalid.

define E_DUPLICATE_ID

#define E_DUPLICATE_ID (-68)

Attempt to set duplicate ID with SetID.

define E_ID_OUT_OF_RANGE

#define E_ID_OUT_OF_RANGE (-69)

Attempt to use ID outside 1..32767 with SetID.

define E_READ_ONLY

#define E_READ_ONLY (-70)

Attempt to modify read-only object header.

define E_BAD_HEAP_POINTER

#define E_BAD_HEAP_POINTER (-71)

Pointer to heap is NULL.

define E_HEAPS_ALREADY_INITIALIZED

#define E_HEAPS_ALREADY_INITIALIZED (-72)

Heaps already initialized.

define E_HEAPS_NOT_INITIALIZED

#define E_HEAPS_NOT_INITIALIZED (-73)

Heaps not yet initialized.

define E_EXCEPTION

#define E_EXCEPTION (-74)

CFramework exception (null pointer?).

define E_MESSAGE_LENGTH_TOO_LONG

#define E_MESSAGE_LENGTH_TOO_LONG (-75)

Bad packet - message length is too long.

define E_CRC_ERROR

#define E_CRC_ERROR (-76)

Bad packet - CRC error.

define E_UNKNOWN_MESSAGE

#define E_UNKNOWN_MESSAGE (-77)

Bad packet - invalid command ID.

define E_MSG_TIMEOUT

#define E_MSG_TIMEOUT (-78)

Message timed out (C6 only).

define E_OBJECT_ID_NOT_FOUND

#define E_OBJECT_ID_NOT_FOUND (-79)

Object ID not found.

define E_PIN_ID_NOT_FOUND

#define E_PIN_ID_NOT_FOUND (-80)

I/O pin not found.

define E_NOT_OBJECT

#define E_NOT_OBJECT (-81)

Not a valid object.

define E_BAD_MEMBER_INDEX

#define E_BAD_MEMBER_INDEX (-82)

Member index is out of object bounds.

define E_CLASS_NOT_SUPPORTED

#define E_CLASS_NOT_SUPPORTED (-83)

Attempt to access member of wrong class type.

define E_PUMP_OVERRUN

#define E_PUMP_OVERRUN (-84)

Attempt to pump when awe_fwTick() was not called.

define E_NOT_V7

#define E_NOT_V7 (-85)

Target is not a V7 target - legacy.

define E_NO_FRAMEWORK

#define E_NO_FRAMEWORK (-86)

The framework does not exist.

define E_NO_CORE

#define E_NO_CORE (-87)

The specified core does not exist.

define E_IOPIN_TOO_MANY

#define E_IOPIN_TOO_MANY (-88)

Too many wires bound to pin.

define E_WIRE_ALREADY_BOUND

#define E_WIRE_ALREADY_BOUND (-89)

Attempt to bind a wire already bound.

define E_WIRES_NOT_SPECIFIED

#define E_WIRES_NOT_SPECIFIED (-90)

Required wires not specified.

define E_NOT_CREATED

#define E_NOT_CREATED (-91)

AWE instance not created.

define E_ALREADY_CREATED

#define E_ALREADY_CREATED (-92)

AWE instance already created.

define E_AUDIO_NOT_STARTED

#define E_AUDIO_NOT_STARTED (-93)

Can't pump, audio not started.

define E_LINKEDLIST_CORRUPT

#define E_LINKEDLIST_CORRUPT (-94)

Module instance linked list is corrupted.

define E_MODULE_NOT_INITIALIZED

#define E_MODULE_NOT_INITIALIZED (-95)

The module was not initialized.

define E_INVALID_FILE

#define E_INVALID_FILE (-96)

The file content is invalid.

If you encounter this error when loading a .awb, it may be because the encryption key does not match the library key. You will have to regenerate the .awb with matching keys"

define E_NO_MORE_ROUTES

#define E_NO_MORE_ROUTES (-97)

There are no more routes.

define E_PUMP_NO_LAYOUTS

#define E_PUMP_NO_LAYOUTS (-98)

Attempt to pump when there is no layout.

define E_NULL_PACKET_BUFFER_POINTER

#define E_NULL_PACKET_BUFFER_POINTER (-99)

Packet Buffer Pointer not initialized.

define E_NULL_REPLY_BUFFER_POINTER

#define E_NULL_REPLY_BUFFER_POINTER (-100)

Reply Buffer Pointer not initialized.

define E_ZERO_PACKET_BUFFER_LENGTH

#define E_ZERO_PACKET_BUFFER_LENGTH (-101)

Packet buffer length is 0.

define E_CALLBACK_NOT_REALTIME

#define E_CALLBACK_NOT_REALTIME (-102)

Audio Callback is not at realtime priority.

define E_PRIORITY_NOT_HI_ENOUGH

#define E_PRIORITY_NOT_HI_ENOUGH (-103)

Audio Callback is not at a high enough priority to support cascading pump threads.

define E_SCHEDULER_PERMISSION_DENIED

#define E_SCHEDULER_PERMISSION_DENIED (-104)

Could not get/set the scheduler priority of callback due to bad permissions.

define E_INVALID_PORTNO

#define E_INVALID_PORTNO (-105)

Port number passed into aweOS tuning interface API must be within 15002-15092 and even.

define E_CANNOT_CREATE_THREAD

#define E_CANNOT_CREATE_THREAD (-106)

Could not create thread or process using OS constructs.

define E_UNEXPECTED_EOF

#define E_UNEXPECTED_EOF (-107)

Loading from array reported EOF early.

define E_OFF_ARRAY_END

#define E_OFF_ARRAY_END (-108)

Attempt to allocate wire from buffer pool off end.

define E_NO_MORE_THREADS

#define E_NO_MORE_THREADS (-109)

Attempt to create thread when all in use.

define E_SOCKET_OPEN_FAIL

#define E_SOCKET_OPEN_FAIL (-110)

AWECoreOS integrated socket failed to open.

define E_INSTANCE_POINTER_INVALID

#define E_INSTANCE_POINTER_INVALID (-111)

Failed to pass required instance to module user constructor.

define E_SYSCALL

#define E_SYSCALL (-112)

System call unavailable on target.

define E_INVALID_ALIGN_VALUE

#define E_INVALID_ALIGN_VALUE (-113)

Tried to malloc with an invalid alignment value (possibly 0)

define E_INVALID_NUM_INSTANCES

#define E_INVALID_NUM_INSTANCES (-114)

numProcessingInstances registered lies outside valid range

define E_OUT_OF_RANGE_INSTANCE_ID

#define E_OUT_OF_RANGE_INSTANCE_ID (-115)

Instance ID registered lies outside numProcessingInstances value set by user.

define E_INVALID_SHARED_HEAP_LENGTH

#define E_INVALID_SHARED_HEAP_LENGTH (-116)

Shared heap size either invalid or unregistered by user.

define E_MULTI_PACKET_WAITING

#define E_MULTI_PACKET_WAITING (-117)

Multi-instance packet has been forwarded but has not yet been serviced.

define E_INVALID_LAYOUT_INDEX

#define E_INVALID_LAYOUT_INDEX (-118)

Invalid layout index.

define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED

#define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED (-119)

Multi-split AWB not started.

define E_NO_LOGGING_CALLBACK_REGISTERED

#define E_NO_LOGGING_CALLBACK_REGISTERED (-120)

Logging callback not registered.

define E_NO_LOGGING_SUPPORT

#define E_NO_LOGGING_SUPPORT (-121)

Logging callbacks not supported.

define E_FILE_NAME_TOO_BIG

#define E_FILE_NAME_TOO_BIG (-122)

Error code returned when file name is too big.

define E_CUSTOM_MODULE_ERROR

#define E_CUSTOM_MODULE_ERROR (-123)

Custom module generic error code.

Source code

/*******************************************************************************
*
*               Audio Framework
*               ---------------
*
********************************************************************************
*     Errors.h
********************************************************************************
*
*     Description:  AudioWeaver Framework Error Codes
*
*     Copyright:    (c) 2007-2021 DSP Concepts, Inc. All rights reserved.
*                   3235 Kifer Road
*                   Santa Clara, CA 95054
*
*******************************************************************************/

#ifndef _ERRORS_H
#define _ERRORS_H



#define E_SUCCESS (0)

#define E_HEAP_INDEX_RANGE                              (-1)

#define E_MALLOC_SIZE_TOO_BIG                           (-2)

#define E_CONSTRUCTOR_ARGUMENT_COUNT                    (-4)

#define E_CLASS_INDEX_RANGE                             (-5)

#define E_CLASS_NOT_FOUND                               (-6)

#define E_MODULE_ALREADY_OWNED                          (-7)

#define E_ASSIGN_ADDRESS_OUT_OF_RANGE                   (-8)

#define E_MODULE_NOT_WIRE                               (-9)

#define E_INPUTS_MUST_MATCH_OUTPUTS                     (-10)

#define E_INPUTS_MUST_BE_SAME_PINTYPE                   (-11)

#define E_MUST_HAVE_INPUTS                              (-12)

#define E_MUST_HAVE_OUTPUTS                             (-13)

#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS       (-14)

#define E_NOT_MODULE                                    (-15)

#define E_INPUT_OUTPUT_COUNT                            (-16)

#define E_PARAMETER_ERROR                               (-17)

#define E_NO_MORE_OBJECTS                               (-18)

#define E_NOT_OBJECT_POINTER                            (-19)

#define E_NOT_INPUT_PIN                                 (-20)

#define E_IOPIN_IN_USE                                  (-21)

#define E_PIN_TYPES_NOT_COMPATIBLE                      (-22)

#define E_PIN_SIZES_NOT_COMPATIBLE                      (-23)

#define E_NOT_OUTPUT_PIN                                (-24)

#define E_NO_MORE_IOPINS                                (-25)

#define E_NO_LAYOUTS                                    (-26)

#define E_MUST_HAVE_ONE_OUTPUT                          (-27)

#define E_OUTPUT_MUST_BE_SINGLE_VALUE                   (-28)

#define E_INCOMPATIBLE_BLOCK_SIZES                      (-29)

#define E_WIRE_INDEX_RANGE                              (-30)

#define E_NO_EVENT_HANDLER                              (-31)

#define E_AUDIO_ALREADY_STARTED                         (-32)

#define E_AUDIO_ALREADY_STOPPED                         (-33)

#define E_COMMUNICATIONS_ERROR                          (-34)

#define E_SALT_OBJECT_NOTFOUND                          (-35)

#define E_SALT_FIELD_RANGE                              (-36)

#define E_SALT_STATE_RANGE                              (-37)

#define E_NOT_IMPLEMENTED_IN_RS232                      (-38)

#define E_BADPACKET                                     (-39)

#define E_BADFILE                                       (-40)

#define E_FILENAMELENGTH                                (-41)

#define E_CANTCREATE                                    (-42)

#define E_CANTOPEN                                      (-43)

#define E_NOSUCHFILE                                    (-44)

#define E_IOERROR                                       (-45)

#define E_FIND_FIRST_FILE_NOT_CALLED                    (-46)

#define E_NO_MORE_FILES                                 (-47)

#define E_BAD_FILENAME                                  (-48)

#define E_FILE_ALREADY_OPEN                             (-49)

#define E_FILE_NOT_FOUND                                (-50)

#define E_ILLEGAL_FILE_ATTRIBUTE                        (-51)

#define E_FILE_ALREADY_EXISTS                           (-52)

#define E_NO_OPEN_FILE                                  (-53)

#define E_OUT_OF_SPACE                                  (-54)

#define E_END_OF_FILE                                   (-55)

#define E_ERROR_READING_FLASH_MEMORY                    (-56)

#define E_ERROR_WRITING_FLASH_MEMORY                    (-57)

#define E_ERROR_ERASING_FLASH_MEMORY                    (-58)

#define E_COMMAND_NOT_IMPLEMENTED                       (-59)

#define E_INTERNAL_MODULE_ALLOCATION_FAILURE            (-60)

#define E_HARDWARE_FAILURE                              (-61)

#define E_REGISTER_INVALID                              (-62)

#define E_REGISTER_BUSY                                 (-63)

#define E_REGISTER_NOT_IMPLEMENTED                      (-64)

#define E_REGISTER_READ_ONLY                            (-65)

#define E_NO_HEAP_MEMORY                                (-66)

#define E_ARGUMENT_ERROR                                (-67)

#define E_DUPLICATE_ID                                  (-68)

#define E_ID_OUT_OF_RANGE                               (-69)

#define E_READ_ONLY                                     (-70)

#define E_BAD_HEAP_POINTER                              (-71)

#define E_HEAPS_ALREADY_INITIALIZED                     (-72)

#define E_HEAPS_NOT_INITIALIZED                         (-73)

#define E_EXCEPTION                                     (-74)

#define E_MESSAGE_LENGTH_TOO_LONG                       (-75)

#define E_CRC_ERROR                                     (-76)

#define E_UNKNOWN_MESSAGE                               (-77)

#define E_MSG_TIMEOUT                                   (-78)

#define E_OBJECT_ID_NOT_FOUND                           (-79)

#define E_PIN_ID_NOT_FOUND                              (-80)

#define E_NOT_OBJECT                                    (-81)

#define E_BAD_MEMBER_INDEX                              (-82)

#define E_CLASS_NOT_SUPPORTED                           (-83)

#define E_PUMP_OVERRUN                                  (-84)

#define E_NOT_V7                                        (-85)

#define E_NO_FRAMEWORK                                  (-86)

#define E_NO_CORE                                       (-87)

#define E_IOPIN_TOO_MANY                                (-88)

#define E_WIRE_ALREADY_BOUND                            (-89)

#define E_WIRES_NOT_SPECIFIED                           (-90)

#define E_NOT_CREATED                                   (-91)

#define E_ALREADY_CREATED                               (-92)

#define E_AUDIO_NOT_STARTED                             (-93)

#define E_LINKEDLIST_CORRUPT                            (-94)

#define E_MODULE_NOT_INITIALIZED                        (-95)

#define E_INVALID_FILE                                  (-96)

#define E_NO_MORE_ROUTES                                (-97)

#define E_PUMP_NO_LAYOUTS                               (-98)

#define E_NULL_PACKET_BUFFER_POINTER                    (-99)

#define E_NULL_REPLY_BUFFER_POINTER                     (-100)

#define E_ZERO_PACKET_BUFFER_LENGTH                     (-101)

#define E_CALLBACK_NOT_REALTIME                         (-102)

#define E_PRIORITY_NOT_HI_ENOUGH                        (-103)

#define E_SCHEDULER_PERMISSION_DENIED                   (-104)

#define E_INVALID_PORTNO                                (-105)

#define E_CANNOT_CREATE_THREAD                          (-106)

#define E_UNEXPECTED_EOF                                (-107)

#define E_OFF_ARRAY_END                                 (-108)

#define E_NO_MORE_THREADS                               (-109)

#define E_SOCKET_OPEN_FAIL                              (-110)

#define E_INSTANCE_POINTER_INVALID                      (-111)

#define E_SYSCALL                                       (-112)

#define E_INVALID_ALIGN_VALUE                           (-113)

#define E_INVALID_NUM_INSTANCES                         (-114)

#define E_OUT_OF_RANGE_INSTANCE_ID                      (-115)

#define E_INVALID_SHARED_HEAP_LENGTH                    (-116)

#define E_MULTI_PACKET_WAITING                          (-117)

#define E_INVALID_LAYOUT_INDEX                          (-118)

#define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED          (-119)

#define E_NO_LOGGING_CALLBACK_REGISTERED                (-120)

#define E_NO_LOGGING_SUPPORT                            (-121)

#define E_FILE_NAME_TOO_BIG                             (-122)

#define E_CUSTOM_MODULE_ERROR                           (-123)

#ifdef DEFINE_ERROR_STRINGS

static const char *s_error_strings[] =
{
    "success",                                          //#define E_SUCCESS (0)
    "no such heap",                                     //#define E_HEAP_INDEX_RANGE (-1)
    "heap allocation request too large",                //#define E_MALLOC_SIZE_TOO_BIG (-2)
    "scratch allocation request too large",             //#define E_SCRATCH_ALLOC_SIZE_TOO_BIG (-3)
    "constructor argument count wrong",                 //#define E_CONSTRUCTOR_ARGUMENT_COUNT (-4)
    "no such class index",                              //#define E_CLASS_INDEX_RANGE (-5)
    "class name not found",                             //#define E_CLASS_NOT_FOUND (-6)
    "module already owned by layout",                   //#define E_MODULE_ALREADY_OWNED (-7)
    "address out of range",                             //#define E_ASSIGN_ADDRESS_OUT_OF_RANGE (-8)
    "module used, wire expected",                       //#define E_MODULE_NOT_WIRE (-9)
    "input must match outputs",                         //#define E_INPUTS_MUST_MATCH_OUTPUTS (-10)
    "input pintypes don't match",                       //#define E_INPUTS_MUST_BE_SAME_PINTYPE (-11)
    "input(s) must be specified",                       //#define E_MUST_HAVE_INPUTS (-12)
    "output(s) must be specified",                      //#define E_MUST_HAVE_OUTPUTS (-13)
    "inputs must match corresponding outputs",          //#define E_INPUTS_MUST_MATCH_CORRESPONDING_OUTPUTS (-14)
    "not a module",                                     //#define E_NOT_MODULE (-15)
    "input/output count wrong",                         //#define E_INPUT_OUTPUT_COUNT (-16)
    "Parameter error",                                  //#define E_PARAMETER_ERROR (-17)
    "no more objects found",                            //#define E_NO_MORE_OBJECTS (-18)
    "pointer value is invalid",                         //#define E_NOT_OBJECT_POINTER (-19)
    "not an input pin",                                 //#define E_NOT_INPUT_PIN (-20)
    "I/O pin is in use",                                //#define E_IOPIN_IN_USE (-21)
    "pin types not compatible",                         //#define E_PIN_TYPES_NOT_COMPATIBLE (-22)
    "pin sizes not compatible",                         //#define E_PIN_SIZES_NOT_COMPATIBLE (-23)
    "not an output pin",                                //#define E_NOT_OUTPUT_PIN (-24)
    "no more pins found",                               //#define E_NO_MORE_IOPINS (-25)
    "no layout(s) to pump",                             //#define E_NO_LAYOUTS (-26)
    "must have one output",                             //#define E_MUST_HAVE_ONE_OUTPUT (-27)
    "output must be single value",                      //#define E_OUTPUT_MUST_BE_SINGLE_VALUE (-28)
    "incompatible block sizes",                         //#define E_INCOMPATIBLE_BLOCK_SIZES (-29)
    "wire index out of range",                          //#define E_WIRE_INDEX_RANGE (-30)
    "module has no event handler",                      //#define E_NO_EVENT_HANDLER (-31)
    "audio already started",                            //#define E_AUDIO_ALREADY_STARTED (-32)
    "audio already stopped",                            //#define E_AUDIO_ALREADY_STOPPED (-33)
    "communications error",                             //#define E_COMMUNICATIONS_ERROR (-34)
    "SALT object not found",                            //#define E_SALT_OBJECT_NOTFOUND (-35)
    "SALT field range error",                           //#define E_SALT_FIELD_RANGE (-36)
    "SALT state range error",                           //#define E_SALT_STATE_RANGE (-37)
    "not implemented",                                  //#define E_NOT_IMPLEMENTED_IN_RS232 (-38)
    "bad packet received",                              //#define E_BADPACKET (-39)
    "invalid filename",                                 //#define E_BADFILE (-40)
    "filename too long",                                //#define E_FILENAMELENGTH (-41)
    "file create failed",                               //#define E_CANTCREATE (-42)
    "file open failed",                                 //#define E_CANTOPEN (-43)
    "no such file",                                     //#define E_NOSUCHFILE (-44)
    "file I/O error",                                   //#define E_IOERROR (-45)
    "FindNext called without FindFirst",                //#define E_FIND_FIRST_FILE_NOT_CALLED (-46)
    "no more files found",                              //#define E_NO_MORE_FILES (-47)
    "bad filename",                                     //#define E_BAD_FILENAME (-48)
    "file already open",                                //#define E_FILE_ALREADY_OPEN (-49)
    "no such file",                                     //#define E_FILE_NOT_FOUND (-50)
    "illegal file attribute",                           //#define E_ILLEGAL_FILE_ATTRIBUTE (-51)
    "file already exists",                              //#define E_FILE_ALREADY_EXISTS (-52)
    "no open file",                                     //#define E_NO_OPEN_FILE (-53)
    "file system full",                                 //#define E_OUT_OF_SPACE (-54)
    "end of file",                                      //#define E_END_OF_FILE (-55)
    "FLASH read error",                                 //#define E_ERROR_READING_FLASH_MEMORY (-56)
    "FLASH write error",                                //#define E_ERROR_WRITING_FLASH_MEMORY (-57)
    "FLASH erase error",                                //#define E_ERROR_ERASING_FLASH_MEMORY (-58)
    "no such command",                                  //#define E_COMMAND_NOT_IMPLEMENTED (-59)
    "internal module allocation error",                 //#define E_INTERNAL_MODULE_ALLOCATION_FAILURE (-60)
    "hardware failure",                                 //#define E_HARDWARE_FAILURE (-61)
    "register invalid",                                 //#define E_REGISTER_INVALID (-62)
    "register busy",                                    //#define E_REGISTER_BUSY (-63)
    "register not implemented",                         //#define E_REGISTER_NOT_IMPLEMENTED (-64)
    "register read only",                               //#define E_REGISTER_READ_ONLY (-65)
    "create heap failed",                               //#define E_NO_HEAP_MEMORY (-66)
    "invalid argument",                                 //#define E_ARGUMENT_ERROR (-67)
    "duplicate ID",                                     //#define E_DUPLICATE_ID (-68)
    "ID out of range",                                  //#define E_ID_OUT_OF_RANGE (-69)
    "read only",                                        //#define E_READ_ONLY (-70)
    "bad heap pointer",                                 //#define E_BAD_HEAP_POINTER (-71)
    "heaps already initialized. same memory location?", //#define E_HEAPS_ALREADY_INITIALIZED (-72)
    "heaps not initialized",                            //#define E_HEAPS_NOT_INITIALIZED (-73)
    "framework exception",                              //#define E_EXCEPTION (-74)
    "message too long",                                 //#define E_MESSAGE_LENGTH_TOO_LONG (-75)
    "CRC error",                                        //#define E_CRC_ERROR (-76)
    "unimplemented or invalid command ID",              //#define E_UNKNOWN_MESSAGE (-77)
    "message timed out",                                //#define E_MSG_TIMEOUT (-78)
    "object ID not found",                              //#define E_OBJECT_ID_NOT_FOUND (-79)
    "no such pin",                                      //#define E_PIN_ID_NOT_FOUND (-80)
    "not an object",                                    //#define E_NOT_OBJECT (-81)
    "bad member index",                                 //#define E_BAD_MEMBER_INDEX (-82)
    "not supported",                                    //#define E_CLASS_NOT_SUPPORTED )-83)
    "audio overrun",                                    //#define E_PUMP_OVERRUN (-84)
    "not a V7 target",                                  //#define E_NOT_V7 (-85)
    "no framework",                                     //#define E_NO_FRAMEWORK (-86)
    "no such core",                                     //#define E_NO_CORE (-87)
    "too many bound wires",                             //#define E_IOPIN_TOO_MANY (-88)
    "wire already bound",                               //#define E_WIRE_ALREADY_BOUND (-89)
    "wires must be specified",                          //#define E_WIRES_NOT_SPECIFIED (-90)
    "instance not created",                             //#define E_NOT_CREATED (-91)
    "instance already created",                         //#define E_ALREADY_CREATED (-92)
    "audio not started",                                //#define E_AUDIO_NOT_STARTED (-93)
    "linked list corrupted",                            //#define E_LINKEDLIST_CORRUPT (-94)
    "module not initialized",                           //#define E_MODULE_NOT_INITIALIZED (-95)
    "invalid file content",                             //#define E_INVALID_FILE (-96)
    "no more routes",                                   //#define E_NO_MORE_ROUTES (-97)
    "pump initiated with no layout",                    //#define E_PUMP_NO_LAYOUTS (-98)
    "packet buffer Pointer not initialized",            //#define E_NULL_PACKET_BUFFER_POINTER (-99)
    "reply buffer Pointer not initialized",             //#define E_NULL_REPLY_BUFFER_POINTER (-100)    
    "packet buffer length is 0",                        //#define E_ZERO_PACKET_BUFFER_LENGTH (-101)
    "audiocallback not at a rt priority",               //#define E_CALLBACK_NOT_REALTIME (-102)
    "audiocallback not at high enough rt priority",     //#define E_PRIORITY_NOT_HI_ENOUGH (-103)
    "cant get/set sched priority. permission denied",   //#define E_SCHEDULER_PERMISSION_DENIED (-104)
    "invalid portno. must be 15002-15098 and even",     //#define E_INVALID_PORTNO (-105)
    "Couldn't create thread or process with OS constructs", //#define E_CANNOT_CREATE_THREAD (-106) 
    "Loading from array reported EOF early",            //#define E_UNEXPECTED_EOF (-107) 
    "off buffer pool end",                              //#define E_OFF_ARRAY_END (-108)
    "no more threads",                                  //#define E_NO_MORE_THREADS (-109)
    "AWECoreOS integrated socket failed to open",       //#define E_SOCKET_OPEN_FAIL (-110)
    "module instance pointer not passed",               //#define E_INSTANCE_POINTER_INVALID (-111)
    "System Call is not available on target",           //#define E_SYSCALL (-112)
    "Tried to malloc with invalid alignment value",     //#define E_INVALID_ALIGN_VALUE (-113)
    "numProcessingInstances lies outside valid range",  //#define E_INVALID_NUM_INSTANCES (-114)
    "instance ID outside range set by numProcessingInstances", //#define E_OUT_OF_RANGE_INSTANCE_ID (-115)
    "shared heap size registered is invalid",           //#define E_INVALID_SHARED_HEAP_LENGTH (-116)
    "multi-instance packet has been forwarded, waiting on response",    //#define E_MULTI_PACKET_WAITING (-117)
    "the specified layout index does not exist",            //#define E_INVALID_LAYOUT_INDEX (-118)
    "the multi-instance split AWB not started",         //#define E_MULTI_INSTANCE_SPLIT_AWB_NOT_STARTED (-119)
    "the logging callback not registered",              //#define E_NO_LOGGING_CALLBACK_REGISTERED (-120)
    "the logging feature is not supported",             //#define E_NO_LOGGING_SUPPORT (-121)
    "the file name is too big",                         //#define E_FILE_NAME_TOO_BIG (-122)
    "generic error code from a custom module"           //#define E_CUSTOM_MODULE_ERROR (-123)
};
#endif // DEFINE_ERROR_STRINGS

#endif  // _ERRORS_H

Updated on 2026-02-10 at 15:44:32 -0500