File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use ndk::audio::{
1010use std:: error:: Error ;
1111
1212pub struct AAudioOutputDevice {
13- stream : AudioStream ,
13+ _stream : AudioStream ,
1414}
1515
1616impl BaseAudioOutputDevice for AAudioOutputDevice { }
@@ -28,7 +28,7 @@ impl AudioOutputDevice for AAudioOutputDevice {
2828 Self : Sized ,
2929 {
3030 let frame_count = params. channel_sample_count as i32 ;
31- let mut stream = AudioStreamBuilder :: new ( )
31+ let stream = AudioStreamBuilder :: new ( )
3232 . map_err ( convert_err) ?
3333 // Ensure double buffering is possible.
3434 . buffer_capacity_in_frames ( 2 * frame_count)
@@ -59,6 +59,6 @@ impl AudioOutputDevice for AAudioOutputDevice {
5959
6060 stream. request_start ( ) . map_err ( convert_err) ?;
6161
62- Ok ( Self { stream } )
62+ Ok ( Self { _stream : stream } )
6363 }
6464}
You can’t perform that action at this time.
0 commit comments