mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Number of channel is configurable
This commit is contained in:
parent
8899a56f65
commit
2fa574684c
|
@ -2,11 +2,12 @@ use agb_fixnum::Num;
|
||||||
use std::{borrow::Cow, num::Wrapping};
|
use std::{borrow::Cow, num::Wrapping};
|
||||||
|
|
||||||
const BUFFER_SIZE: usize = 560;
|
const BUFFER_SIZE: usize = 560;
|
||||||
|
const NUM_CHANNELS: usize = 8;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct Mixer {
|
pub struct Mixer {
|
||||||
channels: [Option<SoundChannel>; 8],
|
channels: [Option<SoundChannel>; NUM_CHANNELS],
|
||||||
indices: [Wrapping<usize>; 8],
|
indices: [Wrapping<usize>; NUM_CHANNELS],
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Mixer {
|
impl Mixer {
|
||||||
|
|
Loading…
Reference in a new issue