Commit f16d3f9 1 parent f4e597b commit f16d3f9 Copy full SHA for f16d3f9
File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ pub enum KaError {
29
29
#[ error( "failed to get default track as no tracks are present" ) ]
30
30
NoTracksArePresent ,
31
31
#[ error( "failed to get cpal device name: {0}" ) ]
32
+ #[ cfg( feature = "cpal" ) ]
32
33
DeviceNameError ( #[ from] cpal:: DeviceNameError ) ,
33
34
34
35
// [`Sound`] errors
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ pub trait Renderer: Clone + Send + 'static {
11
11
fn next_frame ( & mut self , sample_rate : u32 ) -> Frame ;
12
12
13
13
/// This gets called when an audio buffer is done processing.
14
+ #[ cfg( feature = "cpal" ) ]
14
15
fn on_buffer < T > ( & mut self , _buffer : & mut [ T ] )
15
16
where
16
17
T : cpal:: SizedSample + cpal:: FromSample < f32 > ,
@@ -60,6 +61,7 @@ impl Renderer for DefaultRenderer {
60
61
out
61
62
}
62
63
64
+ #[ cfg( feature = "cpal" ) ]
63
65
fn on_buffer < T > ( & mut self , buffer : & mut [ T ] )
64
66
where
65
67
T : cpal:: SizedSample + cpal:: FromSample < f32 > ,
You can’t perform that action at this time.
0 commit comments