Beispiel #1
0
 public static Board Open()
 {
     try
     {
         if (Board.board.IsNull())
         {
             S2253.OpenBoard(-1);
             int deviceCount = 0;
             S2253.GetNumDevices(ref deviceCount);
             Board.board = new Board(deviceCount);
         }
     }
     catch (Exception)
     {
     }
     return(Board.board);
 }
Beispiel #2
0
 public bool Stop()
 {
     return(S2253.StopStream(this.device, this.stream) == 0);
 }
Beispiel #3
0
 public bool StartCallback()
 {
     return(S2253.StartCallback(this.device, this.stream) == 0);
 }
Beispiel #4
0
 public bool StartRecord(string filename)
 {
     return(S2253.StartRecord(filename, this.device, this.stream) == 0);
 }
Beispiel #5
0
 public bool StartPreview()
 {
     return(S2253.StartPreview(this.device, this.stream) == 0);
 }