mirror of
https://github.com/RustAudio/rodio
synced 2024-12-13 05:32:32 +00:00
Merge pull request #251 from br-lewis/master
Fix `output_devices` return type to be `OutputDevices` instead of `InputDevices`
This commit is contained in:
commit
43607113d3
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