Fixed UnboundedStream constructor

This commit is contained in:
Daniel Wolf 2016-04-13 10:15:44 +02:00
parent db6f2e076b
commit d8fbd3596b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
using boost::optional;
UnboundedStream::UnboundedStream(std::unique_ptr<AudioStream> inputStream) :
innerStream(std::move(innerStream)),
innerStream(std::move(inputStream)),
sampleIndex(innerStream->getSampleIndex()),
firstSample(inputStream->getSampleCount() ? optional<float>() : 0.0f),
lastSample(inputStream->getSampleCount() ? optional<float>() : 0.0f)