chore(apu): improve code organization
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-18 00:01:02 -05:00
parent 5d64e539a7
commit 360a9a7b65
4 changed files with 97 additions and 97 deletions

View File

@@ -68,7 +68,7 @@ fn main() -> Result<()> {
let (_stream, stream_handle) = OutputStream::try_default().expect("Initialized Audio");
let sink = Sink::try_new(&stream_handle)?;
sink.append(cons);
game_boy.apu_mut().set_producer(prod);
game_boy.apu_mut().attach_producer(prod);
std::thread::spawn(move || {
sink.sleep_until_end();