diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-22 09:00:16 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-22 09:00:16 +0530 |
commit | eb6adb4b212cd55f8e6a553ecdcffa2f8a7cc63a (patch) | |
tree | a744ce43eeb5c2ff758ccc9d02750489b04bafc2 /src/main.cpp | |
parent | 689fa26e124cebb42518ed7ca14185d80fff20b9 (diff) |
Implement sound
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <iostream> #include <unistd.h> +#include <thread> #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) { |