예제 #1
0
        private static unsafe int DoSeekSecondAbsolute(IntPtr aPtr, uint aVersion, uint aaSecond)
        {
            GCHandle             gch  = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDs1 self = (DvServiceLinnCoUkDs1)gch.Target;

            self.SeekSecondAbsolute(aVersion, aaSecond);
            return(0);
        }
예제 #2
0
        private static unsafe int DoSeekTrackRelative(IntPtr aPtr, uint aVersion, int aaTrack)
        {
            GCHandle             gch  = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDs1 self = (DvServiceLinnCoUkDs1)gch.Target;

            self.SeekTrackRelative(aVersion, aaTrack);
            return(0);
        }
예제 #3
0
        private static unsafe int DoStop(IntPtr aPtr, uint aVersion)
        {
            GCHandle             gch  = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDs1 self = (DvServiceLinnCoUkDs1)gch.Target;

            self.Stop(aVersion);
            return(0);
        }
예제 #4
0
        private static unsafe int DoProtocolInfo(IntPtr aPtr, uint aVersion, char **aaSupportedProtocols)
        {
            GCHandle             gch  = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDs1 self = (DvServiceLinnCoUkDs1)gch.Target;
            string aSupportedProtocols;

            self.ProtocolInfo(aVersion, out aSupportedProtocols);
            *aaSupportedProtocols = (char *)Marshal.StringToHGlobalAnsi(aSupportedProtocols).ToPointer();
            return(0);
        }
예제 #5
0
        private static unsafe int DoState(IntPtr aPtr, uint aVersion, char **aaTransportState, uint *aaTrackDuration, uint *aaTrackBitRate, int *aaTrackLossless, uint *aaTrackBitDepth, uint *aaTrackSampleRate, char **aaTrackCodecName, uint *aaTrackId)
        {
            GCHandle             gch  = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDs1 self = (DvServiceLinnCoUkDs1)gch.Target;
            string aTransportState;
            uint   aTrackDuration;
            uint   aTrackBitRate;
            bool   aTrackLossless;
            uint   aTrackBitDepth;
            uint   aTrackSampleRate;
            string aTrackCodecName;
            uint   aTrackId;

            self.State(aVersion, out aTransportState, out aTrackDuration, out aTrackBitRate, out aTrackLossless, out aTrackBitDepth, out aTrackSampleRate, out aTrackCodecName, out aTrackId);
            *aaTransportState  = (char *)Marshal.StringToHGlobalAnsi(aTransportState).ToPointer();
            *aaTrackDuration   = aTrackDuration;
            *aaTrackBitRate    = aTrackBitRate;
            *aaTrackLossless   = (aTrackLossless ? 1 : 0);
            *aaTrackBitDepth   = aTrackBitDepth;
            *aaTrackSampleRate = aTrackSampleRate;
            *aaTrackCodecName  = (char *)Marshal.StringToHGlobalAnsi(aTrackCodecName).ToPointer();
            *aaTrackId         = aTrackId;
            return(0);
        }