Module: FFI::OpenMPT::API

Extended by:
Library
Included in:
Module
Defined in:
lib/ffi/openmpt/api.rb

Constant Summary collapse

LogDefault =

Logging API calls

attach_function :openmpt_log_func_default, [:string, :pointer], :void
LogSilent =
attach_function :openmpt_log_func_silent, [:string, :pointer], :void
OPENMPT_ERROR_OK =

Error handling API calls

0
OPENMPT_ERROR_BASE =
256
OPENMPT_ERROR_UNKNOWN =
OPENMPT_ERROR_BASE + 1
OPENMPT_ERROR_EXCEPTION =
OPENMPT_ERROR_BASE + 11
OPENMPT_ERROR_OUT_OF_MEMORY =
OPENMPT_ERROR_BASE + 21
OPENMPT_ERROR_RUNTIME =
OPENMPT_ERROR_BASE + 30
OPENMPT_ERROR_RANGE =
OPENMPT_ERROR_BASE + 31
OPENMPT_ERROR_OVERFLOW =
OPENMPT_ERROR_BASE + 32
OPENMPT_ERROR_UNDERFLOW =
OPENMPT_ERROR_BASE + 33
OPENMPT_ERROR_LOGIC =
OPENMPT_ERROR_BASE + 40
OPENMPT_ERROR_DOMAIN =
OPENMPT_ERROR_BASE + 41
OPENMPT_ERROR_LENGTH =
OPENMPT_ERROR_BASE + 42
OPENMPT_ERROR_OUT_OF_RANGE =
OPENMPT_ERROR_BASE + 43
OPENMPT_ERROR_INVALID_ARGUMENT =
OPENMPT_ERROR_BASE + 44
OPENMPT_ERROR_GENERAL =
OPENMPT_ERROR_BASE + 101
OPENMPT_ERROR_INVALID_MODULE_POINTER =
OPENMPT_ERROR_BASE + 102
OPENMPT_ERROR_ARGUMENT_NULL_POINTER =
OPENMPT_ERROR_BASE + 103
OPENMPT_ERROR_FUNC_RESULT_NONE =
0
OPENMPT_ERROR_FUNC_RESULT_LOG =
(1 << 0)
OPENMPT_ERROR_FUNC_RESULT_STORE =
(1 << 1)
OPENMPT_ERROR_FUNC_RESULT_DEFAULT =
(OPENMPT_ERROR_FUNC_RESULT_LOG | OPENMPT_ERROR_FUNC_RESULT_STORE)
ErrorDefault =
attach_function :openmpt_error_func_default, [:int, :pointer], :int
ErrorLog =
attach_function :openmpt_error_func_log, [:int, :pointer], :int
ErrorStore =
attach_function :openmpt_error_func_store, [:int, :pointer], :int
ErrorIgnore =
attach_function :openmpt_error_func_ignore, [:int, :pointer], :int
OPENMPT_PROBE_FILE_HEADER_FLAGS_NONE =

Probe module calls

0x0
OPENMPT_PROBE_FILE_HEADER_FLAGS_MODULES =
0x1
OPENMPT_PROBE_FILE_HEADER_FLAGS_CONTAINERS =
0x2
OPENMPT_PROBE_FILE_HEADER_FLAGS_DEFAULT =
(OPENMPT_PROBE_FILE_HEADER_FLAGS_MODULES |
OPENMPT_PROBE_FILE_HEADER_FLAGS_CONTAINERS)
OPENMPT_PROBE_FILE_HEADER_RESULT_FAILURE =
0
OPENMPT_PROBE_FILE_HEADER_RESULT_SUCCESS =
1
OPENMPT_PROBE_FILE_HEADER_RESULT_WANTMOREDATA =
-1
OPENMPT_PROBE_FILE_HEADER_RESULT_ERROR =
-255
OPENMPT_MODULE_RENDER_MASTERGAIN_MILLIBEL =

Render param module calls

1
OPENMPT_MODULE_RENDER_STEREOSEPARATION_PERCENT =
2
OPENMPT_MODULE_RENDER_INTERPOLATIONFILTER_LENGTH =
3
OPENMPT_MODULE_RENDER_VOLUMERAMPING_STRENGTH =
4