private unsafe void GetDeviceDetails(int index, out DeviceDetails deviceDetailsRef) { DeviceDetails.__Native _Native = default(DeviceDetails.__Native); Result result = LocalInterop.Calliint(this._nativePointer, index, &_Native, *(*(void ***)this._nativePointer + 4)); deviceDetailsRef = default(DeviceDetails); deviceDetailsRef.__MarshalFrom(ref _Native); result.CheckError(); }
/// <summary> /// No documentation. /// </summary> /// <param name="countRef">No documentation.</param> /// <returns>No documentation.</returns> /// <!-- No matching elements were found for the following include tag --><include file="Documentation\CodeComments.xml" path="/comments/comment[@id='IXAudio2::GetDeviceCount']/*" /> /// <unmanaged>HRESULT IXAudio2::GetDeviceCount([Out] unsigned int* pCount)</unmanaged> /// <unmanaged-short>IXAudio2::GetDeviceCount</unmanaged-short> private unsafe void GetDeviceCount(out int countRef) { Result result; fixed(void *ptr = &countRef) { result = LocalInterop.Calliint(this._nativePointer, ptr, *(*(void ***)this._nativePointer + 3)); } result.CheckError(); }
internal unsafe void CreateMasteringVoice27(MasteringVoice masteringVoiceOut, int inputChannels, int inputSampleRate, int flags, int deviceIndex, EffectChain?effectChainRef) { IntPtr zero = IntPtr.Zero; EffectChain value; if (effectChainRef.HasValue) { value = effectChainRef.Value; } Result result = LocalInterop.Calliint(this._nativePointer, (void *)&zero, inputChannels, inputSampleRate, flags, deviceIndex, effectChainRef.HasValue ? ((void *)(&value)) : ((void *)IntPtr.Zero), *(*(void ***)this._nativePointer + 10)); masteringVoiceOut.NativePointer = zero; result.CheckError(); }
private unsafe void Initialize(int flags, ProcessorSpecifier xAudio2Processor) { var result = (Result)LocalInterop.Calliint(this._nativePointer, (int)flags, (int)xAudio2Processor, *(*(void ***)this._nativePointer + 5)); result.CheckError(); }