Fix conversion warning

This commit is contained in:
Ryan Huffman 2016-01-27 14:13:23 -08:00
parent 7e5eec55da
commit 2ec201b85e

View file

@ -181,7 +181,7 @@ int64_t AudioInjector::injectNextFrame() {
// make sure we actually have samples downloaded to inject
if (_audioData.size()) {
auto sampleSize = (_options.stereo ? 2 : 1) * sizeof(AudioConstants::AudioSample);
int sampleSize = (_options.stereo ? 2 : 1) * sizeof(AudioConstants::AudioSample);
auto numSamples = static_cast<int>(_audioData.size() / sampleSize);
auto targetSize = numSamples * sampleSize;
if (targetSize != _audioData.size()) {