程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> 關於C語言 >> 用C#編寫網絡電話(7)

用C#編寫網絡電話(7)

編輯:關於C語言

構造函數#region 構造函數

public CaptureSound()
  {
    isRecording = false;
    positionNotify = new BufferPositionNotify[5];
    notificationEvent = null;
    buffer = null;
    fileName = string.Empty;
    notify = null;
    notifyThread = null;
    waveFile = null;
    writer = null;
    captureBufferSize = 0;
    nextCaptureOffset = 0;
    sampleCount = 0L;
    notifySize = 0;
    InitializeDeviceSelector();
    InitializeWaveFormatSelector();
    Initialize();
  }
  public CaptureSound(Capture device)
  {
    isRecording = false;
    positionNotify = new BufferPositionNotify[5];
    notificationEvent = null;
    buffer = null;
    fileName = string.Empty;
    notify = null;
    notifyThread = null;
    waveFile = null;
    writer = null;
    captureBufferSize = 0;
    nextCaptureOffset = 0;
    sampleCount = 0L;
    notifySize = 0;
    selectedDevice = device;
    InitializeWaveFormatSelector();
    Initialize();
  }
  public CaptureSound(WaveFormat waveFormat)
  {
    isRecording = false;
    positionNotify = new BufferPositionNotify[5];
    notificationEvent = null;
    buffer = null;
    fileName = string.Empty;
    notify = null;
    notifyThread = null;
    waveFile = null;
    writer = null;
    captureBufferSize = 0;
    nextCaptureOffset = 0;
    sampleCount = 0L;
    notifySize = 0;
    selectedFormat = waveFormat;
    InitializeDeviceSelector();
    Initialize();
  }
  public CaptureSound(Capture device, WaveFormat waveFormat)
  {
    isRecording = false;
    positionNotify = new BufferPositionNotify[5];
    notificationEvent = null;
    buffer = null;
    fileName = string.Empty;
    notify = null;
    notifyThread = null;
    waveFile = null;
    writer = null;
    captureBufferSize = 0;
    nextCaptureOffset = 0;
    sampleCount = 0L;
    notifySize = 0;
    selectedDevice = device;
    selectedFormat = waveFormat;
    Initialize();
  }
  #endregion

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved