public static extern ALContext CreateContext([In] ALDevice device, [In] int[] attributeList);
public static extern string GetString(ALDevice device, GetEnumerationString param);
public static extern unsafe byte *GetStringList(ALDevice device, GetEnumerationStringList param);
// -------- ALC_EXT_CAPTURE -------- /// <summary> /// Checks to see that the ALC_EXT_CAPTURE extension is present. This will always be available in 1.1 devices or later. /// </summary> /// <param name="device">The device to check the extension is present for.</param> /// <returns>If the ALC_EXT_CAPTURE extension was present.</returns> public static bool IsCaptureExtensionPresent(ALDevice device) { return(IsExtensionPresent(device, "ALC_EXT_CAPTURE")); }
// -------- ALC_ENUMERATION_EXT -------- /// <summary> /// Checks to see that the ALC_ENUMERATION_EXT extension is present. This will always be available in 1.1 devices or later. /// </summary> /// <param name="device">The device to check the extension is present for.</param> /// <returns>If the ALC_ENUMERATION_EXT extension was present.</returns> public static bool IsEnumerationExtensionPresent(ALDevice device) { return(IsExtensionPresent(device, "ALC_ENUMERATION_EXT")); }
public static extern AlcError GetError([In] ALDevice device);
/// <summary>This function returns integers related to the context.</summary> /// <param name="device">A pointer to the device to be queried.</param> /// <param name="param">An attribute to be retrieved: ALC_MAJOR_VERSION, ALC_MINOR_VERSION, ALC_ATTRIBUTES_SIZE, ALC_ALL_ATTRIBUTES.</param> /// <returns>The value returned.</returns> public static int GetInteger(ALDevice device, AlcGetInteger param) { GetInteger(device, param, 1, out int data); return(data); }
public static unsafe extern void GetInteger(ALDevice device, AlcGetInteger param, int size, int *data);
public static extern void GetInteger(ALDevice device, AlcGetInteger param, int size, out int data);
public static unsafe extern byte *GetStringPtr([In] ALDevice device, AlcGetString param);
public static extern string GetString([In] ALDevice device, AlcGetString param);
public static extern int GetEnumValue([In] ALDevice device, [In] string enumname);
public static extern IntPtr GetProcAddress([In] ALDevice device, [In] string funcname);
public static extern bool IsExtensionPresent([In] ALDevice device, [In] string extname);
// ALC_API ALCcontext * ALC_APIENTRY alcCreateContext( ALCdevice *device, const ALCint* attrlist ); /// <summary>This function creates a context using a specified device.</summary> /// <param name="device">A pointer to a device.</param> /// <param name="attributeList">A zero terminated span of a set of attributes: ALC_FREQUENCY, ALC_MONO_SOURCES, ALC_REFRESH, ALC_STEREO_SOURCES, ALC_SYNC.</param> /// <returns>Returns a pointer to the new context (NULL on failure).</returns> /// <remarks>The attribute list can be NULL, or a zero terminated list of integer pairs composed of valid ALC attribute tokens and requested values.</remarks> public static ALContext CreateContext(ALDevice device, Span <int> attributeList) { return(CreateContext(device, ref attributeList[0])); }
// ALC_API void ALC_APIENTRY alcGetIntegerv( ALCdevice *device, ALCenum param, ALCsizei size, ALCint *buffer ); /// <summary>This function returns integers related to the context.</summary> /// <param name="device">A pointer to the device to be queried.</param> /// <param name="param">An attribute to be retrieved: ALC_MAJOR_VERSION, ALC_MINOR_VERSION, ALC_ATTRIBUTES_SIZE, ALC_ALL_ATTRIBUTES.</param> /// <param name="data">A pointer to the buffer to be returned.</param> public static void GetInteger(ALDevice device, AlcGetInteger param, out int data) { GetInteger(device, param, 1, out data); }
/// <summary>This function creates a context using a specified device.</summary> /// <param name="device">A pointer to a device.</param> /// <param name="attributes">The ALContext attributes to request.</param> /// <returns>Returns a pointer to the new context (NULL on failure).</returns> /// <remarks>The attribute list can be NULL, or a zero terminated list of integer pairs composed of valid ALC attribute tokens and requested values.</remarks> public static ALContext CreateContext(ALDevice device, ALContextAttributes attributes) { return(CreateContext(device, attributes.CreateAttributeArray())); }
public static extern bool CloseDevice([In] ALDevice device);