Ejemplo n.º 1
0
 public override string ToString()
 {
     if (_port != null)
     {
         return(new StringBuilder().
                AppendFormat("(MMalAudioPort {0}: format={1} buffers={2}x{3})",
                             Name, MMalPort.FormatToString(Format), _port->buffer_num, _port->buffer_size).ToString());
     }
     else
     {
         return("MMalAudioPort closed");
     }
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     if (_port != null)
     {
         return(new StringBuilder().
                AppendFormat("(MMALVideoPort {0}: format={1} buffers={2}x{3} frames={4}@{5}fps)",
                             Name, MMalPort.FormatToString(Format), _port->buffer_num, _port->buffer_size, Framesize, Framerate).ToString());
     }
     else
     {
         return("MMALVideoPort closed");
     }
 }