Expand description

Package ffi contains bindings to underlying C API and thin abstraction for managing C handles.

Re-exports

pub use self::_ParticipantChangedReason as ParticipantChangedReason;

Structs

Wrapper struct around underlying native handles Apart from handle it wraps release function that is automatically called when SmartHandle is dropped (see Drop trait implementation).

Constants

Statics

Functions

Creates a codec object. This method needs to be exported from the dll @param codecid - codec id, can be null or empty if the library implements only one codec. @param codecContext - context to be used to call back to the caller @param property_read_func - function to read properties @return A codec object

Type Definitions

The AUDIO_ENCODER_ONENCODEDDATA type represents an application-defined status callback function used to provide the encoded data. @param pBuffer audio data buffer. @param bytesToWrite The length of pBuffer in bytes. @param duration_100nanos The duration of the audio sample @param pContext A pointer to the application-defined callback context.

The SPX_CODEC_CLIENT_GET_PROPERTY represents the function reading a property value @param id Property id. @param buffer caller provided buffer to receive the value of the property @param buffersize buffer size. If buffer is passed as null it will return the required buffer size. @param codecContext A pointer to caller data provided through the codec_create call. @return A return code or zero if successful.