Replaced char* arguments with void* for raw data

This commit is contained in:
Laurent Gomila 2012-04-03 19:06:32 +02:00
parent 69f387de22
commit 8d0da1d9d6
8 changed files with 37 additions and 37 deletions

View file

@ -126,7 +126,7 @@ private :
if (id == audioData)
{
// Extract audio samples from the packet, and append it to our samples buffer
const sf::Int16* samples = reinterpret_cast<const sf::Int16*>(packet.getData() + 1);
const sf::Int16* samples = reinterpret_cast<const sf::Int16*>(static_cast<const char*>(packet.getData()) + 1);
std::size_t sampleCount = (packet.getDataSize() - 1) / sizeof(sf::Int16);
// Don't forget that the other thread can access the sample array at any time