File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ impl Default for ChannelMergerOptions {
66
66
pub struct ChannelMergerNode {
67
67
registration : AudioContextRegistration ,
68
68
channel_config : ChannelConfig ,
69
+ number_of_inputs : usize ,
69
70
}
70
71
71
72
impl AudioNode for ChannelMergerNode {
@@ -88,7 +89,7 @@ impl AudioNode for ChannelMergerNode {
88
89
}
89
90
90
91
fn number_of_inputs ( & self ) -> usize {
91
- self . channel_count ( )
92
+ self . number_of_inputs
92
93
}
93
94
94
95
fn number_of_outputs ( & self ) -> usize {
@@ -100,14 +101,14 @@ impl ChannelMergerNode {
100
101
pub fn new < C : BaseAudioContext > ( context : & C , options : ChannelMergerOptions ) -> Self {
101
102
context. register ( move |registration| {
102
103
crate :: assert_valid_number_of_channels ( options. number_of_inputs ) ;
103
- options. channel_config . count = options. number_of_inputs ;
104
104
105
105
assert_valid_channel_count ( options. channel_config . count ) ;
106
106
assert_valid_channel_count_mode ( options. channel_config . count_mode ) ;
107
107
108
108
let node = ChannelMergerNode {
109
109
registration,
110
110
channel_config : options. channel_config . into ( ) ,
111
+ number_of_inputs : options. number_of_inputs ,
111
112
} ;
112
113
113
114
let render = ChannelMergerRenderer { } ;
You can’t perform that action at this time.
0 commit comments