mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 14:14:21 +00:00
Fix output_devices
return type to be OutputDevices
instead of
`InputDevices`
This commit is contained in:
parent
e5474a2ef1
commit
33788059e7
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ extern crate lewton;
|
|||
#[cfg(feature = "mp3")]
|
||||
extern crate minimp3;
|
||||
|
||||
pub use cpal::{traits::DeviceTrait, Device, Devices, DevicesError, InputDevices};
|
||||
pub use cpal::{traits::DeviceTrait, Device, Devices, DevicesError, InputDevices, OutputDevices};
|
||||
|
||||
pub use conversions::Sample;
|
||||
pub use decoder::Decoder;
|
||||
|
@ -169,6 +169,6 @@ pub fn input_devices() -> Result<InputDevices<Devices>, DevicesError> {
|
|||
///
|
||||
/// Can be empty if the system does not support audio output.
|
||||
#[inline]
|
||||
pub fn output_devices() -> Result<InputDevices<Devices>, DevicesError> {
|
||||
pub fn output_devices() -> Result<OutputDevices<Devices>, DevicesError> {
|
||||
cpal::default_host().output_devices()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue