[英]audio jack server: can't get buffer
experts... 专家...
I have a little questions. 我有一些问题。 I want to create a client for Jack audio server and when I want to get a buffer to write into it like this:
我想为Jack音频服务器创建一个客户端,当我想要一个缓冲区写入它时,如下所示:
sample_t *out = (sample_t *) jack_port_get_buffer(output_port, nframes);
i get this: 我明白了:
error: 'sample_t' was not declared in this scope
错误:未在此范围内声明'sample_t'
I don't know what to do because I included the header(jack/jack.h) correctly and I can create a client and I can open ports. 我不知道该怎么办,因为我正确地包含了标题(jack / jack.h),我可以创建一个客户端,我可以打开端口。
Thanks! 谢谢!
did you typedef the original variable name of jack? 你输入了原始的千斤顶变量名吗?
typedef jack_default_audio_sample_t sample_t;
Most of the time, sample_t
will be too generic for a variable name in a library, that's why they "rename" it to sample_t. 大多数情况下,
sample_t
对于库中的变量名称来说过于通用,这就是他们将其“重命名”为sample_t的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.