File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl<Callback: 'static + Send + AudioInputCallback> AlsaStream<Callback> {
2121 }
2222 let buffer = AudioRef :: from_interleaved ( & ctx. buffer , ctx. num_channels ) . unwrap ( ) ;
2323 let context = AudioCallbackContext {
24- stream_config,
24+ stream_config : * ctx . config ,
2525 timestamp : * ctx. timestamp ,
2626 } ;
2727 let input = AudioInput {
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ impl<Callback: 'static + Send> AlsaStream<Callback> {
7171 log:: info!( "Sample rate : {samplerate}" ) ;
7272 let stream_config = StreamConfig {
7373 samplerate,
74- channels : ChannelMap32 :: default ( )
75- . with_indices ( std:: iter:: repeat ( 1 ) . take ( num_channels) ) ,
74+ channels : ChannelMap32 :: default ( ) . with_indices ( 0 ..num_channels) ,
7675 buffer_size_range : ( Some ( period_size) , Some ( period_size) ) ,
7776 exclusive : false ,
7877 } ;
You can’t perform that action at this time.
0 commit comments