• alsa-util.c


    ■ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, struct pa_sample_spec *ss, uint32_t *periods, snd_pcm_uframes_t *buffer_size)
         https://i.cnblogs.com/posts/edit-done;postId=13058429

    ■ int pa_create_io_sources(snd_pcm_t *pcm_handle,
    struct pa_mainloop_api* m,
    void ***io_sources,
    unsigned *n_io_sources,
    void (*cb)(struct pa_mainloop_api*a, void *id, int fd, enum pa_mainloop_api_io_events events, void *userdata),
    void *userdata)

    通过pcm_handle获取pollfd,然后将pollfd注册到poll的pollfd, 当事件发生时,在mainloop中调用cb。
    poll
    https://www.cnblogs.com/renhl/p/13057425.html


    ■ void pa_free_io_sources(struct pa_mainloop_api* m, void **io_sources, unsigned n_io_sources)
      将注册到poll的pollfd取消

  • 相关阅读:
    Delphi IDE 设置
    我最喜欢的歌曲
    Window 常用文件
    Delphi TTable 组件
    Delphi TDatabase 组件
    c语言->和 .
    Shell 工具之 gawk
    Shell 工具之 sed
    Shell 语法之函数
    Shell 语法之信号与作业
  • 原文地址:https://www.cnblogs.com/renhl/p/13058431.html
Copyright © 2020-2023  润新知