Пример #1
0
 public static extern ALContext CreateContext([In] ALDevice device, [In] int[] attributeList);
Пример #2
0
 public static extern string GetString(ALDevice device, GetEnumerationString param);
Пример #3
0
 public static extern unsafe byte *GetStringList(ALDevice device, GetEnumerationStringList param);
Пример #4
0
        // -------- 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"));
        }
Пример #5
0
        // -------- 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"));
        }
Пример #6
0
 public static extern AlcError GetError([In] ALDevice device);
Пример #7
0
 /// <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);
 }
Пример #8
0
 public static unsafe extern void GetInteger(ALDevice device, AlcGetInteger param, int size, int *data);
Пример #9
0
 public static extern void GetInteger(ALDevice device, AlcGetInteger param, int size, out int data);
Пример #10
0
 public static unsafe extern byte *GetStringPtr([In] ALDevice device, AlcGetString param);
Пример #11
0
 public static extern string GetString([In] ALDevice device, AlcGetString param);
Пример #12
0
 public static extern int GetEnumValue([In] ALDevice device, [In] string enumname);
Пример #13
0
 public static extern IntPtr GetProcAddress([In] ALDevice device, [In] string funcname);
Пример #14
0
 public static extern bool IsExtensionPresent([In] ALDevice device, [In] string extname);
Пример #15
0
        // 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]));
        }
Пример #16
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);
        }
Пример #17
0
 /// <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()));
 }
Пример #18
0
 public static extern bool CloseDevice([In] ALDevice device);