Fixing more tabs

This commit is contained in:
Melefo
2021-02-10 13:49:56 +01:00
parent 850f3b8ef2
commit 7555227e20
9 changed files with 40 additions and 149 deletions

View File

@@ -18,8 +18,8 @@ namespace ComSquare::Renderer
this->_texture.create(width, height);
this->_sprite.setTexture(this->_texture);
this->_pixelBuffer = new sf::Color[height * width];
this->_sound.setBuffer(this->_soundBuffer);
}
this->_sound.setBuffer(this->_soundBuffer);
}
void SFRenderer::createWindow(SNES &snes, int maxFPS)
{
@@ -55,10 +55,10 @@ namespace ComSquare::Renderer
}
void SFRenderer::playAudio(int16_t *samples, uint64_t sampleCount)
{
this->_soundBuffer.loadFromSamples(samples, sampleCount, 2, 32040);
this->_sound.play();
}
{
this->_soundBuffer.loadFromSamples(samples, sampleCount, 2, 32040);
this->_sound.play();
}
void SFRenderer::putPixel(unsigned y, unsigned x, uint32_t rgba)
{