Fix typos

This commit is contained in:
Dimitris Apostolou 2022-02-19 18:14:34 +02:00
parent da3dbba697
commit 1cd0caf8b6
No known key found for this signature in database
GPG key ID: 4B5D20E938204A8A
3 changed files with 5 additions and 5 deletions

View file

@ -440,7 +440,7 @@ impl Driver {
/// This will destroy any already allocated buffers.
///
/// If buffersize is None then the preferred buffer size from ASIO is used,
/// otherwise the desired buffersize is used if the requeted size is within
/// otherwise the desired buffersize is used if the requested size is within
/// the range of accepted buffersizes for the device.
fn create_buffers(
&self,
@ -842,7 +842,7 @@ fn asio_channel_info(channel: c_long, is_input: bool) -> Result<ai::ASIOChannelI
/// If `is_input` is true, this will be queried on the input stream.
fn stream_data_type(is_input: bool) -> Result<AsioSampleType, AsioError> {
let channel_info = asio_channel_info(0, is_input)?;
Ok(FromPrimitive::from_i32(channel_info.type_).expect("unkown `ASIOSampletype` value"))
Ok(FromPrimitive::from_i32(channel_info.type_).expect("unknown `ASIOSampletype` value"))
}
/// ASIO uses null terminated c strings for driver names.