mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +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};
|
||||
|
||||
const BUFFER_SIZE: usize = 560;
|
||||
const NUM_CHANNELS: usize = 8;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Mixer {
|
||||
channels: [Option<SoundChannel>; 8],
|
||||
indices: [Wrapping<usize>; 8],
|
||||
channels: [Option<SoundChannel>; NUM_CHANNELS],
|
||||
indices: [Wrapping<usize>; NUM_CHANNELS],
|
||||
}
|
||||
|
||||
impl Mixer {
|
||||
|
|
Loading…
Reference in a new issue