Fix audio::concat
This commit is contained in:
parent
8c8ede7587
commit
424ed06ecb
1 changed files with 3 additions and 2 deletions
|
|
@ -38,8 +38,9 @@ namespace psemek::audio
|
||||||
|
|
||||||
for (; index_ != streams_.size(); ++index_)
|
for (; index_ != streams_.size(); ++index_)
|
||||||
{
|
{
|
||||||
count += streams_[index_]->read(samples);
|
auto read = streams_[index_]->read(samples);
|
||||||
samples.consume(count);
|
count += read;
|
||||||
|
samples.consume(read);
|
||||||
if (samples.empty())
|
if (samples.empty())
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue