Merge pull request #251 from br-lewis/master

Fix `output_devices` return type to be `OutputDevices` instead of `InputDevices`
This commit is contained in:
est31 2019-10-24 13:59:52 +02:00 committed by GitHub
commit 43607113d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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