Fix minor inconsistency in type cast in voip example

because m_samples is a vector of Int16 values.
This commit is contained in:
kimci86 2022-10-01 16:33:03 +02:00 committed by Vittorio Romeo
parent 01fc55ba37
commit d0cf86d516

View File

@ -85,7 +85,7 @@ private:
// (don't forget that we run in two separate threads)
{
sf::Lock lock(m_mutex);
m_tempBuffer.assign(m_samples.begin() + static_cast<std::vector<sf::Int64>::difference_type>(m_offset), m_samples.end());
m_tempBuffer.assign(m_samples.begin() + static_cast<std::vector<sf::Int16>::difference_type>(m_offset), m_samples.end());
}
// Fill audio data to pass to the stream