@@ -6,6 +6,7 @@ pub use self::stream::Stream;
66use crate :: traits:: HostTrait ;
77use crate :: BackendSpecificError ;
88use crate :: DevicesError ;
9+ use crate :: SupportedStreamConfigsError ;
910use std:: io:: Error as IoError ;
1011use windows:: Win32 :: Media :: Audio ;
1112
@@ -25,15 +26,20 @@ impl Host {
2526 pub fn new ( ) -> Result < Self , crate :: HostUnavailable > {
2627 Ok ( Host )
2728 }
28-
29- fn supported_output_configs ( & self , device : & Device ) -> Result < SupportedOutputConfigs , DevicesError > {
30- Ok ( device. supported_output_configs ( ) ?)
29+
30+ fn supported_input_configs (
31+ & self ,
32+ device : & Device ,
33+ ) -> Result < SupportedInputConfigs , DevicesError > {
34+ Ok ( device. supported_input_configs ( ) ?)
3135 }
32-
33- fn supported_input_configs ( & self , device : & Device ) -> Result < SupportedInputConfigs , DevicesError > {
36+
37+ fn supported_output_configs (
38+ & self ,
39+ device : & Device ,
40+ ) -> Result < SupportedInputConfigs , DevicesError > {
3441 Ok ( device. supported_input_configs ( ) ?)
3542 }
36-
3743}
3844
3945impl From < SupportedStreamConfigsError > for DevicesError {
@@ -58,15 +64,14 @@ impl HostTrait for Host {
5864 fn devices ( & self ) -> Result < Self :: Devices , DevicesError > {
5965 Devices :: new ( )
6066 }
61-
67+
6268 fn default_input_device ( & self ) -> Option < Self :: Device > {
6369 default_input_device ( )
6470 }
6571
6672 fn default_output_device ( & self ) -> Option < Self :: Device > {
6773 default_output_device ( )
6874 }
69-
7075}
7176
7277impl From < windows:: core:: Error > for BackendSpecificError {
0 commit comments