Fix compiler error

This commit is contained in:
James Rowe 2019-03-06 11:30:23 -07:00
parent ba4dfe4217
commit 5c61d53047

View File

@ -114,7 +114,8 @@ long CubebInput::Impl::DataCallback(cubeb_stream* stream, void* user_data, const
}
u8 const* data = reinterpret_cast<u8 const*>(input_buffer);
impl->sample_queue->Push(std::vector(data, data + num_frames * impl->sample_size_in_bytes));
std::vector<u8> samples{data, data + num_frames * impl->sample_size_in_bytes};
impl->sample_queue->Push(samples);
// returning less than num_frames here signals cubeb to stop sampling
return num_frames;