Skip to content

Commit 84d77c7

Browse files
committed
fixes microphone builder using output device...
1 parent c2afb74 commit 84d77c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/microphone/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ where
162162
/// ```
163163
pub fn default_device(&self) -> Result<MicrophoneBuilder<DeviceIsSet, ConfigNotSet, E>, Error> {
164164
let default_device = cpal::default_host()
165-
.default_output_device()
165+
.default_input_device()
166166
.ok_or(Error::NoDevice)?;
167167
let supported_configs = default_device
168168
.supported_input_configs()

0 commit comments

Comments
 (0)