[英]what is AV_SAMPLE_FMT_FLT
SwrContext *swr_ctx = swr_alloc_set_opts(NULL,
AV_CH_LAYOUT_STEREO,
AV_SAMPLE_FMT_FLT,
sample_rate,
pCodecParameters->channel_layout,
pCodecParameters->format,
pCodecParameters->sample_rate,
0,
NULL);
what exactly AV_SAMPLE_FMT_FLT is? AV_SAMPLE_FMT_FLT 到底是什么? i already read docs but i want to know that what is float layout means in the context of Audio.我已经阅读了文档,但我想知道什么是浮动布局在音频上下文中的含义。 How actually binary data of audio will look in that format.音频的二进制数据在该格式中的实际外观。
It means every sample is in single buffer and per sample data is 32bit float.这意味着每个样本都在单个缓冲区中,每个样本数据是 32 位浮点数。 Buffer AFAIK structured like this:缓冲区 AFAIK 的结构如下:
[SAMPLE_CH0][SAMPLE_CH1]...[SAMPLE_CHn]
[SAMPLE_CH0][SAMPLE_CH1]...[SAMPLE_CHn]
So on so forth.以此类推。 This repeats the number of "samples" times.这会重复“样本”的次数。
I may be wrong though, you need to check it yourself.我可能错了,你需要自己检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.