上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: ■ 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 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 样本长度(sample):样本是记录音频数据最基本的单位,计算机对每个通道采样量化时数字比特位数,常见的有8位和16位。通道数(channel):该参数为1表示单声道,2则是立体声。帧(frame):帧记录了一个声音单元,其长度为样本长度与通道数的乘积,一段音频数据就是由苦干帧组成的。采样率(rat 阅读全文
posted @ 2020-06-07 06:01 renhl 阅读(538) 评论(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 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 1、重启source insight; 2、按两次F11; 阅读全文
posted @ 2020-06-03 07:44 renhl 阅读(801) 评论(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 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-02 04:10 renhl 阅读(81) 评论(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 阅读(208) 评论(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 阅读(257) 评论(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 阅读(106) 评论(0) 推荐(0) 编辑
摘要: hashmap.h #ifndef foohashmaphfoo #define foohashmaphfoo /* $Id: hashmap.h 90 2004-07-17 14:12:30Z lennart $ */ /*** This file is part of polypaudio. p 阅读全文
posted @ 2020-05-24 23:32 renhl 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页