• 首頁
  • 文件
  • 下載
  • 狀態
  • 常見問題
  • 郵件列表
  • 應用程式
  • 外部鏈結
  • 版權
  • 志願者
  • 聯繫

類別:StreamIO

音訊資料導流管

類型 使用 成員 說明
建構子 public StreamIO(void)
解構子 public ~StreamIO(void)
列舉 public CallBackResult
列舉 public FlowSituation
列舉 public CallbackFlags
資料 public const void * InputBuffer
資料 public void * OutputBuffer
資料 public unsigned long FrameCount
資料 public unsigned long MaxInputSize
資料 public unsigned long MaxOutputSize
資料 public unsigned long StatusFlags
資料 public FlowSituation InputSituation
資料 public FlowSituation OutputSituation
資料 public CaTime InputBufferAdcTime
資料 public CaTime CurrentTime
資料 public CaTime OutputBufferDacTime
資料 public CacInputFunction inputFunction
資料 public CacOutputFunction outputFunction
函式 public virtual int obtain (void) = 0
函式 public virtual int put (void) = 0
函式 public virtual void finish (void) = 0
函式 protected virtual int ObtainByFunction (void)
函式 protected virtual int PutByFunction (void)

C/C++定義

{
  public:

    typedef enum FlowSituation     {
      Stagnated = 0                ,
      Started   = 1                ,
      Stalled   = 2                ,
      Completed = 3                ,
      Ruptured  = 4                }
    FlowSituation                  ;

    typedef enum CallbackFlags     {
      InputUnderflow  = 0x00000001 ,
      InputOverflow   = 0x00000002 ,
      OutputUnderflow = 0x00000004 ,
      OutputOverflow  = 0x00000008 ,
      PrimingOutput   = 0x00000010 }
      CallbackFlags                ;

    void        * Buffer         ;
    int           BytesPerSample ;
    unsigned long FrameCount     ;
    unsigned long MaxSize        ;
    unsigned long StatusFlags    ;
    CaTime        CurrentTime    ;
    CaTime        AdcDac         ;
    FlowSituation Situation      ;

    explicit  StreamIO  (void) ;
    virtual  ~StreamIO  (void) ;

    void      Reset     (void) ;
    long long Total     (void) ;
    bool      isNull    (void) ;
    int       setSample (CaSampleFormat format,int channels) ;

  protected:

  private:

};