コード例 #1
0
        private static unsafe int DoLocate(IntPtr aPtr, uint aVersion)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;

            self.Locate(aVersion);
            return(0);
        }
コード例 #2
0
        private static unsafe int DoSetDigitalAudioOutputRaw(IntPtr aPtr, uint aVersion, int aaRaw)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            bool aRaw = (aaRaw != 0);

            self.SetDigitalAudioOutputRaw(aVersion, aRaw);
            return(0);
        }
コード例 #3
0
        private static unsafe int DoSetVolumeControlEnabled(IntPtr aPtr, uint aVersion, int aaEnabled)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            bool aEnabled = (aaEnabled != 0);

            self.SetVolumeControlEnabled(aVersion, aEnabled);
            return(0);
        }
コード例 #4
0
        private static unsafe int DoSetAmplifierAttenuation(IntPtr aPtr, uint aVersion, char *aaAttenuation)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            string aAttenuation = Marshal.PtrToStringAnsi((IntPtr)aaAttenuation);

            self.SetAmplifierAttenuation(aVersion, aAttenuation);
            return(0);
        }
コード例 #5
0
        private static unsafe int DoEthernetLinkConnected(IntPtr aPtr, uint aVersion, int *aaLinkConnected)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            bool aLinkConnected;

            self.EthernetLinkConnected(aVersion, out aLinkConnected);
            *aaLinkConnected = (aLinkConnected ? 1 : 0);
            return(0);
        }
コード例 #6
0
        private static unsafe int DoAmplifierOverTemperature(IntPtr aPtr, uint aVersion, int *aaOverTemperature)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            bool aOverTemperature;

            self.AmplifierOverTemperature(aVersion, out aOverTemperature);
            *aaOverTemperature = (aOverTemperature ? 1 : 0);
            return(0);
        }
コード例 #7
0
        private static unsafe int DoAmplifierAttenuation(IntPtr aPtr, uint aVersion, char **aaAttenuation)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            string aAttenuation;

            self.AmplifierAttenuation(aVersion, out aAttenuation);
            *aaAttenuation = (char *)Marshal.StringToHGlobalAnsi(aAttenuation).ToPointer();
            return(0);
        }
コード例 #8
0
        private static unsafe int DoAmplifierEnabled(IntPtr aPtr, uint aVersion, int *aaEnabled)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkComponent1 self = (DvServiceLinnCoUkComponent1)gch.Target;
            bool aEnabled;

            self.AmplifierEnabled(aVersion, out aEnabled);
            *aaEnabled = (aEnabled ? 1 : 0);
            return(0);
        }