address some compiler warnings. oopsie

This commit is contained in:
Gered 2022-07-10 11:51:05 -04:00
parent 6b7b525597
commit 933811f705
2 changed files with 3 additions and 3 deletions

View file

@ -185,10 +185,10 @@ impl AudioQueue {
device.play_buffer_on_channel(channel, &buffer, loops)?;
},
PlayGenerator { generator, loops } => {
device.play_generator(generator, loops);
device.play_generator(generator, loops)?;
},
PlayGeneratorOnChannel { channel, generator, loops } => {
device.play_generator_on_channel(channel, generator, loops);
device.play_generator_on_channel(channel, generator, loops)?;
},
}
} else {

View file

@ -252,7 +252,7 @@ impl SystemBuilder {
};
let mut audio = Audio::new(audio_spec, &sdl_audio_subsystem)?;
audio.resume();
let mut audio_queue = AudioQueue::from(&audio);
let audio_queue = AudioQueue::from(&audio);
// create input device objects, exposed to the application