• 首页
  • 文件
  • 下载
  • 状态
  • 常见问题
  • 邮件列表
  • 应用程序
  • 外部链结
  • 版权
  • 志愿者
  • 联络

类别:StreamIO

音讯串流输出入介面

类型 使用 成员 说明
建构子 public StreamIO(void)
解构子 public ~StreamIO(void)
资料 public void * Buffer 资料交换区。
资料 public int BytesPerSample 每个样本的位元组数量。
资料 public unsigned long FrameCount 取样数。
资料 public unsigned long MaxSize
资料 public unsigned long StatusFlags 目前状态。
资料 public CaTime CurrentTime 目前时间。
资料 public CaTime AdcDac 数据时间。
资料 public FlowSituation Situation 目前处理状况。
函式 public void Reset (void) 归零。
函式 public long long Total (void) FrameCount * BytesPerSample
函式 public bool isNull (void) NULL == Buffer
函式 public int setSample (CaSampleFormat format,int channels) 计算BytesPerSample

说明

音讯串流输出入介面是CIOS Audio Core介面当中,顶层使用介面与底层音讯驱动介面的资料交换主要介面。

C/C++定义


class StreamIO
{
  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) ;

};