From eb6adb4b212cd55f8e6a553ecdcffa2f8a7cc63a Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 22 Oct 2023 09:00:16 +0530 Subject: Implement sound --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 583b4ad..7e7d90a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "chip8.hpp" #include "platform.hpp" @@ -24,7 +25,7 @@ int main(int argc, char** argv) { Chip8 chip8; chip8.LoadROM(filename); - int count = 0; + std::thread timerThread(&Chip8::TimerUpdateThread, &chip8, &platform); bool quit = false; while (!quit) { -- cgit v1.2.3