Пример #1
0
 /// <summary>
 ///     Gets the voice's filter parameters.
 /// </summary>
 /// <param name="filterParameters">
 ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
 ///     information.
 /// </param>
 /// <returns>HRESULT</returns>
 public unsafe int GetFilterParametersNative(out FilterParameters filterParameters)
 {
     filterParameters = default(FilterParameters);
     fixed(void *p = &filterParameters)
     {
         return(InteropCalls.CallI(UnsafeBasePtr, p, ((void **)(*(void **)UnsafeBasePtr))[9]));
     }
 }
Пример #2
0
        /// <summary>
        ///     Sets the filter parameters on one of this voice's sends.
        /// </summary>
        /// <param name="destinationVoice">The destination voice of the send whose filter parameters will be set.</param>
        /// <param name="filterParameters">
        ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
        ///     information.
        /// </param>
        /// <param name="operationSet">
        ///     Identifies this call as part of a deferred batch. For more information see
        ///     http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx.
        /// </param>
        /// <returns>HRESULT</returns>
        public unsafe int SetOutputFilterParametersNative(XAudio2Voice destinationVoice,
                                                          FilterParameters filterParameters,
                                                          int operationSet)
        {
            IntPtr pVoice = destinationVoice == null ? IntPtr.Zero : destinationVoice.BasePtr;

            return(InteropCalls.CallI(UnsafeBasePtr, (void *)pVoice, &filterParameters, operationSet,
                                      ((void **)(*(void **)UnsafeBasePtr))[10]));
        }
Пример #3
0
        /// <summary>
        ///     Returns the filter parameters from one of this voice's sends.
        /// </summary>
        /// <param name="destinationVoice">The destination voice of the send whose filter parameters will be read.</param>
        /// <param name="filterParameters">
        ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
        ///     information.
        /// </param>
        /// <returns>HRESULT</returns>
        public unsafe int GetOutputFilterParametersNative(XAudio2Voice destinationVoice,
                                                          out FilterParameters filterParameters)
        {
            filterParameters = default(FilterParameters);

            IntPtr pVoice = destinationVoice == null ? IntPtr.Zero : destinationVoice.BasePtr;

            fixed(void *p = &filterParameters)
            {
                return(InteropCalls.CallI(UnsafeBasePtr, (void *)pVoice, p, ((void **)(*(void **)UnsafeBasePtr))[11]));
            }
        }
Пример #4
0
 /// <summary>
 ///     Sets the filter parameters on one of this voice's sends.
 /// </summary>
 /// <param name="destinationVoice">The destination voice of the send whose filter parameters will be set.</param>
 /// <param name="filterParameters">
 ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
 ///     information.
 /// </param>
 public void SetOutputFilterParameters(XAudio2Voice destinationVoice, FilterParameters filterParameters)
 {
     SetOutputFilterParameters(destinationVoice, filterParameters, 0);
 }
Пример #5
0
 /// <summary>
 ///     Sets the filter parameters on one of this voice's sends.
 /// </summary>
 /// <param name="destinationVoice">The destination voice of the send whose filter parameters will be set.</param>
 /// <param name="filterParameters">
 ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
 ///     information.
 /// </param>
 /// <param name="operationSet">
 ///     Identifies this call as part of a deferred batch. For more information see
 ///     http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx.
 /// </param>
 public void SetOutputFilterParameters(XAudio2Voice destinationVoice, FilterParameters filterParameters,
                                       int operationSet)
 {
     XAudio2Exception.Try(SetOutputFilterParametersNative(destinationVoice, filterParameters, operationSet), InterfaceName,
                          "SetOutputFilterParameters");
 }
Пример #6
0
 /// <summary>
 ///     Sets the voice's filter parameters.
 /// </summary>
 /// <param name="filterParameters">
 ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
 ///     information.
 /// </param>
 /// <param name="operationSet">
 ///     Identifies this call as part of a deferred batch. For more information see
 ///     http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx.
 /// </param>
 public void SetFilterParameters(FilterParameters filterParameters, int operationSet)
 {
     XAudio2Exception.Try(SetFilterParametersNative(filterParameters, operationSet), InterfaceName, "SetFilterParameters");
 }
Пример #7
0
 /// <summary>
 ///     Sets the voice's filter parameters.
 /// </summary>
 /// <param name="filterParameters">
 ///     <see cref="CSCore.XAudio2.FilterParameters" /> structure containing the filter
 ///     information.
 /// </param>
 /// <param name="operationSet">
 ///     Identifies this call as part of a deferred batch. For more information see
 ///     http://msdn.microsoft.com/en-us/library/windows/desktop/ee415807(v=vs.85).aspx.
 /// </param>
 /// <returns>HRESULT</returns>
 public unsafe int SetFilterParametersNative(FilterParameters filterParameters, int operationSet)
 {
     return(InteropCalls.CallI(UnsafeBasePtr, &filterParameters, operationSet, ((void **)(*(void **)UnsafeBasePtr))[8]));
 }
Пример #8
0
 internal static unsafe int CallI(void* _basePtr, void* p1, FilterParameters* filterParameters, int operationSet,
     void* p2)
 {
     throw new NotImplementedException();
 }