Fix output_devices return type to be OutputDevices instead of

`InputDevices`
This commit is contained in:
Brian Lewis 2019-10-05 23:35:50 +02:00
parent e5474a2ef1
commit 33788059e7

View file

@ -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()
}