Struct rodio::OutputStream [−][src]
pub struct OutputStream { /* fields omitted */ }
Expand description
cpal::Stream
container. Also see the more useful OutputStreamHandle
.
If this is dropped playback will end & attached OutputStreamHandle
s will no longer work.
Implementations
impl OutputStream
[src]
impl OutputStream
[src]pub fn try_from_device(
device: &Device
) -> Result<(Self, OutputStreamHandle), StreamError>
[src]
pub fn try_from_device(
device: &Device
) -> Result<(Self, OutputStreamHandle), StreamError>
[src]Returns a new stream & handle using the given output device.
pub fn try_default() -> Result<(Self, OutputStreamHandle), StreamError>
[src]
pub fn try_default() -> Result<(Self, OutputStreamHandle), StreamError>
[src]Return a new stream & handle using the default output device.
On failure will fallback to trying any non-default output devices.