Add _raw suffix to stream constructors
This commit is contained in:
parent
5390c01641
commit
78df791377
13 changed files with 41 additions and 41 deletions
|
|
@ -102,7 +102,7 @@ impl DeviceTrait for Device {
|
|||
Device::default_output_format(self)
|
||||
}
|
||||
|
||||
fn build_input_stream<D, E>(
|
||||
fn build_input_stream_raw<D, E>(
|
||||
&self,
|
||||
format: &Format,
|
||||
data_callback: D,
|
||||
|
|
@ -112,10 +112,10 @@ impl DeviceTrait for Device {
|
|||
D: FnMut(&Data) + Send + 'static,
|
||||
E: FnMut(StreamError) + Send + 'static,
|
||||
{
|
||||
Device::build_input_stream(self, format, data_callback, error_callback)
|
||||
Device::build_input_stream_raw(self, format, data_callback, error_callback)
|
||||
}
|
||||
|
||||
fn build_output_stream<D, E>(
|
||||
fn build_output_stream_raw<D, E>(
|
||||
&self,
|
||||
format: &Format,
|
||||
data_callback: D,
|
||||
|
|
@ -125,7 +125,7 @@ impl DeviceTrait for Device {
|
|||
D: FnMut(&mut Data) + Send + 'static,
|
||||
E: FnMut(StreamError) + Send + 'static,
|
||||
{
|
||||
Device::build_output_stream(self, format, data_callback, error_callback)
|
||||
Device::build_output_stream_raw(self, format, data_callback, error_callback)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -467,7 +467,7 @@ fn audio_unit_from_device(device: &Device, input: bool) -> Result<AudioUnit, cor
|
|||
}
|
||||
|
||||
impl Device {
|
||||
fn build_input_stream<D, E>(
|
||||
fn build_input_stream_raw<D, E>(
|
||||
&self,
|
||||
format: &Format,
|
||||
mut data_callback: D,
|
||||
|
|
@ -655,7 +655,7 @@ impl Device {
|
|||
}))
|
||||
}
|
||||
|
||||
fn build_output_stream<D, E>(
|
||||
fn build_output_stream_raw<D, E>(
|
||||
&self,
|
||||
format: &Format,
|
||||
mut data_callback: D,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue