Esempio n. 1
0
 internal unsafe void __MarshalFrom(ref __Native @ref)
 {
     Flags = @ref.Flags;
     if (@ref.OutputVoice != System.IntPtr.Zero)
     {
         OutputVoice = new SharpDX.XAudio2.Voice(@ref.OutputVoice);
     }
     else
     {
         OutputVoice = null;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice.
 /// </summary>
 /// <param name="destinationVoiceRef">[in]  Pointer to a destination <see cref="SharpDX.XAudio2.Voice"/> for which to set volume levels. Note If the voice sends to a single target voice then specifying NULL will cause SetOutputMatrix to operate on that target voice. </param>
 /// <param name="sourceChannels">[in]  Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain. </param>
 /// <param name="destinationChannels">[in]  Confirms the input channel count of the destination voice. </param>
 /// <param name="levelMatrixRef">[in]  Array of [SourceChannels ? DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is specified in the form pLevelMatrix[SourceChannels ? D + S]. For example, when rendering two-channel stereo input into 5.1 output that is weighted toward the front channels?but is absent from the center and low-frequency channels?the matrix might have the values shown in the following table.  OutputLeft InputRight Input Left1.00.0 Right0.01.0 Front Center0.00.0 LFE0.00.0 Rear Left0.80.0 Rear Right0.00.8  Note that the left and right input are fully mapped to the output left and right channels; 80 percent of the left and right input is mapped to the rear left and right channels. See Remarks for more information on volume levels. </param>
 /// <returns>No documentation.</returns>
 /// <unmanaged>HRESULT IXAudio2Voice::SetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[None] UINT32 SourceChannels,[None] UINT32 DestinationChannels,[In, Buffer] const float* pLevelMatrix,[None] UINT32 OperationSet)</unmanaged>
 public void SetOutputMatrix(SharpDX.XAudio2.Voice destinationVoiceRef, int sourceChannels, int destinationChannels, float[] levelMatrixRef)
 {
     this.SetOutputMatrix(destinationVoiceRef, sourceChannels, destinationChannels, levelMatrixRef, 0);
 }