浏览代码

audio: fix bug in channel conversion stream object

wip/image-kernel
Sam Hocevar 9 个月前
父节点
当前提交
0d0dabfe6f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/lol/private/audio/stream.h

+ 1
- 1
include/lol/private/audio/stream.h 查看文件

@@ -137,7 +137,7 @@ public:
s0->get(tmp.data(), frames);
for (size_t f = 0; f < frames; ++f)
{
buf[f * this->channels()] = tmp[f * s0->channels()];
buf[f * this->channels()] = convert_sample<T0, T>(tmp[f * s0->channels()]);
for (size_t ch = 1; ch < this->channels(); ++ch)
{
size_t ch0 = std::max(size_t(0), s0->channels() - (this->channels() - ch));


正在加载...
取消
保存