Skip to content

Commit ca93b20

Browse files
committed
refactor(examples): custom.rs doesn't need to override the default impl in traits.rs
1 parent 463745b commit ca93b20

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

examples/custom.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,6 @@ impl DeviceTrait for MyDevice {
181181
handle: Some(handle),
182182
})
183183
}
184-
185-
fn build_duplex_stream_raw<D, E>(
186-
&self,
187-
_config: &cpal::duplex::DuplexStreamConfig,
188-
_sample_format: cpal::SampleFormat,
189-
_data_callback: D,
190-
_error_callback: E,
191-
_timeout: Option<std::time::Duration>,
192-
) -> Result<Self::Stream, cpal::BuildStreamError>
193-
where
194-
D: FnMut(&cpal::Data, &mut cpal::Data, &cpal::duplex::DuplexCallbackInfo) + Send + 'static,
195-
E: FnMut(cpal::StreamError) + Send + 'static,
196-
{
197-
Err(cpal::BuildStreamError::StreamConfigNotSupported)
198-
}
199184
}
200185

201186
impl StreamTrait for MyStream {

0 commit comments

Comments
 (0)