- [FIX] El àudio ja se sincronitza correctament

This commit is contained in:
2025-01-30 16:09:13 +01:00
parent dffbb9c741
commit 454cce304f
3 changed files with 10 additions and 15 deletions

View File

@@ -322,8 +322,8 @@ namespace gbscreen
if ( (STAT&0x3)==3) {
uint16_t current_pixel = dots_in_scanline-80;
if (current_pixel<160) {
uint8_t pixel = gb_pixels[current_pixel+LY*160];
gb_pixels[current_pixel+LY*160] = pixel > line_buffer[current_pixel] ? pixel-1 : line_buffer[current_pixel];
//uint8_t pixel = gb_pixels[current_pixel+LY*160];
gb_pixels[current_pixel+LY*160] = line_buffer[current_pixel];// > line_buffer[current_pixel] ? pixel-1 : line_buffer[current_pixel];
}
}