Skip to content

Commit

Permalink
Hide OutputStreamConfig struct
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrGlad committed Nov 21, 2024
1 parent 4101ae9 commit 0ba6021
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl OutputStream {
}

#[derive(Copy, Clone, Debug)]
pub struct OutputStreamConfig {
struct OutputStreamConfig {
pub channel_count: ChannelCount,
pub sample_rate: SampleRate,
pub buffer_size: BufferSize,
Expand Down Expand Up @@ -298,8 +298,7 @@ impl error::Error for StreamError {
}

impl OutputStream {
/// Open output audio stream.
pub fn open(
fn open(
device: &cpal::Device,
config: &OutputStreamConfig,
) -> Result<OutputStream, StreamError> {
Expand Down

0 comments on commit 0ba6021

Please sign in to comment.