public bool TryParamsAmsSideband(AmsSideband state) { var ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(uint))); try { MarshalHelper.WriteUInt32(ptr, (uint)state); return(_api.SetDemodulatorParam(_radio.GetHandle(), _ddc2.Channel(), (uint)NativeDefinitions.DemodulatorParameter.G3XDDC_DEMODULATOR_PARAM_AMS_SIDE_BAND, ptr, (uint)Marshal.SizeOf(typeof(uint)))); } finally { Marshal.FreeHGlobal(ptr); } }
public Demodulator ParamsAmsSideband(AmsSideband state) { _radio.Check(TryParamsAmsSideband(state)); return(this); }