Beispiel #1
0
 /// <summary>
 /// Retrieves the capabilities of the buffer object. 
 /// </summary>
 /// <param name="bufferCaps">Receives the capabilities of this sound buffer.</param>
 /// <returns>DSResult</returns>
 public DSResult GetCapsNative(out DSBufferCaps bufferCaps)
 {
     bufferCaps = new DSBufferCaps();
     bufferCaps.Size = Marshal.SizeOf(bufferCaps);
     fixed (void* ptrbuffercaps = &bufferCaps)
     {
         var result = InteropCalls.CalliMethodPtr(UnsafeBasePtr, ptrbuffercaps, ((void**)(*(void**)UnsafeBasePtr))[3]);
         return result;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Retrieves the capabilities of the buffer object.
        /// </summary>
        /// <param name="bufferCaps">Receives the capabilities of this sound buffer.</param>
        /// <returns>DSResult</returns>
        public DSResult GetCapsNative(out DSBufferCaps bufferCaps)
        {
            bufferCaps      = new DSBufferCaps();
            bufferCaps.Size = Marshal.SizeOf(bufferCaps);
            fixed(void *ptrbuffercaps = &bufferCaps)
            {
                var result = InteropCalls.CalliMethodPtr(UnsafeBasePtr, ptrbuffercaps, ((void **)(*(void **)UnsafeBasePtr))[3]);

                return(result);
            }
        }