示例#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);