Replaced char* arguments with void* for raw data
This commit is contained in:
parent
69f387de22
commit
8d0da1d9d6
8 changed files with 37 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue