Exemplo n.º 1
0
        public string GetCompiler()
        {
#if !NET20
            return(GetInteropDelegate <GetCompiler>().Invoke().ToStringAnsi());
#else
            return(IntPtrExtensions.ToStringAnsi(GetInteropDelegate <GetCompiler>().Invoke()));
#endif
        }
Exemplo n.º 2
0
        public string GetLastErrorMessage()
        {
#if !NET20
            return(GetInteropDelegate <GetLastErrorMessage>().Invoke().ToStringAnsi());
#else
            return(IntPtrExtensions.ToStringAnsi(GetInteropDelegate <GetLastErrorMessage>().Invoke()));
#endif
        }
Exemplo n.º 3
0
        public string GetEventTypeName(EventTypes eventType)
        {
#if !NET20
            return(GetInteropDelegate <GetEventTypeName>().Invoke(eventType).ToStringAnsi());
#else
            return(IntPtrExtensions.ToStringAnsi(GetInteropDelegate <GetEventTypeName>().Invoke(eventType)));
#endif
        }
Exemplo n.º 4
0
        public string GetVideoMarqueeText(VlcMediaPlayerInstance mediaPlayerInstance)
        {
            if (mediaPlayerInstance == IntPtr.Zero)
            {
                throw new ArgumentException("Media player instance is not initialized.");
            }
#if NET20
            return(IntPtrExtensions.ToStringAnsi(GetInteropDelegate <GetVideoMarqueeString>().Invoke(mediaPlayerInstance, VideoMarqueeOptions.Text)));
#else
            return(GetInteropDelegate <GetVideoMarqueeString>().Invoke(mediaPlayerInstance, VideoMarqueeOptions.Text).ToStringAnsi());
#endif
        }
Exemplo n.º 5
0
        internal static FilterModuleDescription GetFilterModuleDescription(ModuleDescriptionStructure module)
        {
            if (module.Name == IntPtr.Zero)
            {
                return(null);
            }
            var result = new FilterModuleDescription();

#if NET20
            result.Name      = IntPtrExtensions.ToStringAnsi(module.Name);
            result.ShortName = IntPtrExtensions.ToStringAnsi(module.ShortName);
            result.LongName  = IntPtrExtensions.ToStringAnsi(module.LongName);
            result.Help      = IntPtrExtensions.ToStringAnsi(module.Help);
#else
            result.Name      = module.Name.ToStringAnsi();
            result.ShortName = module.ShortName.ToStringAnsi();
            result.LongName  = module.LongName.ToStringAnsi();
            result.Help      = module.Help.ToStringAnsi();
#endif
            return(result);
        }
 public string GetAudioOutputDeviceLongName(string audioOutputDescriptionName, int deviceIndex)
 {
     return(IntPtrExtensions.ToStringAnsi(GetInteropDelegate <GetAudioOutputDeviceLongName>().Invoke(myVlcInstance, StringExtensions.ToHGlobalAnsi(audioOutputDescriptionName), deviceIndex)));
 }