Skip to content

Commit

Permalink
Comment io_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
diwic committed Oct 23, 2024
1 parent 43529ad commit 0107524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ impl PCM {

#[deprecated(note = "renamed to io_bytes")]
pub fn io(&self) -> IO<u8> { IO::new(self) }

/// Call this if you have an unusual format, not supported by the regular access methods
/// (io_i16 etc). It will succeed regardless of the sample format, but conversion to and from
/// bytes to your format is up to you.
pub fn io_bytes(&self) -> IO<u8> { IO::new(self) }

/// Read buffers by talking to the kernel directly, bypassing alsa-lib.
Expand Down

0 comments on commit 0107524

Please sign in to comment.