上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: ■ static int load(const char *fn, void *data, size_t length) 从fn文件中读出length长度的数据,用data返回数据 ■ static int generate(const char *fn, void *data, size_t le 阅读全文
posted @ 2020-06-07 07:01 renhl 阅读(327) 评论(0) 推荐(0)
摘要: ■ 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 阅读全文
posted @ 2020-06-07 06:05 renhl 阅读(67) 评论(0) 推荐(0)
摘要: 样本长度(sample):样本是记录音频数据最基本的单位,计算机对每个通道采样量化时数字比特位数,常见的有8位和16位。通道数(channel):该参数为1表示单声道,2则是立体声。帧(frame):帧记录了一个声音单元,其长度为样本长度与通道数的乘积,一段音频数据就是由苦干帧组成的。采样率(rat 阅读全文
posted @ 2020-06-07 06:01 renhl 阅读(665) 评论(0) 推荐(0)
摘要: ■ 函数说明 int poll(struct pollfd *fds, nfds_t nfds, int timeout); The set of file descriptors to be monitored is specified in the fds argument, which is 阅读全文
posted @ 2020-06-06 22:37 renhl 阅读(546) 评论(0) 推荐(0)
摘要: 1、重启source insight; 2、按两次F11; 阅读全文
posted @ 2020-06-03 07:44 renhl 阅读(868) 评论(0) 推荐(0)
摘要: 根据输入的args,将key和value存入到map中,关键就是如何解析args。 ■ static int add_key_value(struct pa_hashmap *map, char *key, char *value, const char* const* valid_keys)■ s 阅读全文
posted @ 2020-06-02 08:15 renhl 阅读(244) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-02 04:10 renhl 阅读(91) 评论(0) 推荐(0)
摘要: ★ //memblock->data 的有效数据从index索引开始,长度为lengthstruct pa_memchunk { struct pa_memblock *memblock; size_t index, length;};★ //base 是每次取出的大小//buffer和buffer 阅读全文
posted @ 2020-05-31 19:19 renhl 阅读(231) 评论(0) 推荐(0)
摘要: ■ struct pa_memblock *pa_memblock_new(size_t length)memblock分配,分配类型是PA_MEMBLOCK_APPENDED。pa_memblock 和 数据是连续分配的,由pa_memblock中data指向分配的数据区域。■ struct pa 阅读全文
posted @ 2020-05-31 10:36 renhl 阅读(292) 评论(0) 推荐(0)
摘要: alsa-util.calsa-util.hauthkey.cauthkey.hcli-command.ccli-command.hcli.ccli.hclient.cclient.hclitext.cclitext.hcmdline.ccmdline.hcore.ccore.hdepmod.pyd 阅读全文
posted @ 2020-05-31 09:06 renhl 阅读(113) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页