@@ -66,14 +66,14 @@ fn assert_valid_channel_interpretation(interpretation: ChannelInterpretation) {
6666#[ derive( Clone , Debug ) ]
6767pub struct ChannelSplitterOptions {
6868 pub number_of_outputs : usize ,
69- pub channel_config : AudioNodeOptions ,
69+ pub audio_node_options : AudioNodeOptions ,
7070}
7171
7272impl Default for ChannelSplitterOptions {
7373 fn default ( ) -> Self {
7474 Self {
7575 number_of_outputs : 6 ,
76- channel_config : AudioNodeOptions {
76+ audio_node_options : AudioNodeOptions {
7777 channel_count : 6 , // must be same as number_of_outputs
7878 channel_count_mode : ChannelCountMode :: Explicit ,
7979 channel_interpretation : ChannelInterpretation :: Discrete ,
@@ -131,14 +131,14 @@ impl ChannelSplitterNode {
131131 pub fn new < C : BaseAudioContext > ( context : & C , mut options : ChannelSplitterOptions ) -> Self {
132132 context. base ( ) . register ( move |registration| {
133133 assert_valid_number_of_channels ( options. number_of_outputs ) ;
134- options. channel_config . channel_count = options. number_of_outputs ;
134+ options. audio_node_options . channel_count = options. number_of_outputs ;
135135
136- assert_valid_channel_count_mode ( options. channel_config . channel_count_mode ) ;
137- assert_valid_channel_interpretation ( options. channel_config . channel_interpretation ) ;
136+ assert_valid_channel_count_mode ( options. audio_node_options . channel_count_mode ) ;
137+ assert_valid_channel_interpretation ( options. audio_node_options . channel_interpretation ) ;
138138
139139 let node = ChannelSplitterNode {
140140 registration,
141- channel_config : options. channel_config . into ( ) ,
141+ channel_config : options. audio_node_options . into ( ) ,
142142 } ;
143143
144144 let render = ChannelSplitterRenderer {
0 commit comments