Fix build errors

This commit is contained in:
Gwilym Inzani 2023-07-23 23:39:52 +01:00
parent 25ee876932
commit df75d1ce8c
2 changed files with 3 additions and 4 deletions

View file

@ -25,7 +25,7 @@ fn main(mut gba: Gba) -> ! {
{
if let Some(channel) = mixer.channel(&channel_id) {
let half: Num<i16, 4> = num!(0.5);
let half: Num<i16, 8> = num!(0.5);
let half_usize: Num<u32, 8> = num!(0.5);
match input.x_tri() {
Tri::Negative => channel.panning(-half),

View file

@ -1,4 +1,4 @@
use agb::fixnum::Num;
use agb::fixnum::num;
use agb::rng;
use agb::sound::mixer::{ChannelId, Mixer, SoundChannel};
@ -98,8 +98,7 @@ impl<'a> Sfx<'a> {
pub fn slime_boing(&mut self) {
let mut channel = SoundChannel::new(SLIME_BOING);
let one: Num<i16, 4> = 1.into();
channel.volume(one / 4);
channel.volume(num!(0.25));
self.mixer.play_sound(channel);
}