Ejemplo n.º 1
0
 /// <summary>
 /// VlcAudioOutput constrctor
 /// </summary>
 /// <param name="audioOutput">The libvlc audio output structure</param>
 internal VlcAudioOutputDevice(AudioOutput audioOutput)
 {
     Name        = IntPtrExtensions.ToStringAnsi(audioOutput.name);
     Description = IntPtrExtensions.ToStringAnsi(audioOutput.description);
     if (audioOutput.next != IntPtr.Zero)
     {
         var next = (AudioOutput)Marshal.PtrToStructure(audioOutput.next, typeof(AudioOutput));
         Next = new VlcAudioOutputDevice(next);
     }
 }
        /// <summary>
        /// VlcAudioOutput constrctor
        /// </summary>
        /// <param name="audioOutput">The libvlc audio output structure</param>
        internal VlcAudioOutputDevice(AudioOutput audioOutput)
        {
            Name = IntPtrExtensions.ToStringAnsi(audioOutput.name);
            Description = IntPtrExtensions.ToStringAnsi(audioOutput.description);
            if (audioOutput.next != IntPtr.Zero)
            {
#if SILVERLIGHT
                var next = new AudioOutput();
                Marshal.PtrToStructure(audioOutput.next, next);
#else
                var next = (AudioOutput)Marshal.PtrToStructure(audioOutput.next, typeof(AudioOutput));
#endif
                Next = new VlcAudioOutputDevice(next);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// VlcAudioOutput constrctor
        /// </summary>
        /// <param name="audioOutput">The libvlc audio output structure</param>
        internal VlcAudioOutputDevice(AudioOutput audioOutput)
        {
            Name        = IntPtrExtensions.ToStringAnsi(audioOutput.name);
            Description = IntPtrExtensions.ToStringAnsi(audioOutput.description);
            if (audioOutput.next != IntPtr.Zero)
            {
#if SILVERLIGHT
                var next = new AudioOutput();
                Marshal.PtrToStructure(audioOutput.next, next);
#else
                var next = (AudioOutput)Marshal.PtrToStructure(audioOutput.next, typeof(AudioOutput));
#endif
                Next = new VlcAudioOutputDevice(next);
            }
        }