Compare commits

...

2 Commits

View File

@@ -188,11 +188,9 @@ where
F: FnMut(&[f32]),
{
let hr = initialize_mta();
if hr != 0 {
return Err(Error::AudioCapture(format!(
"WASAPI init failed: HRESULT 0x{:08X}",
hr
)));
let hr_value: i32 = hr.0;
if hr_value != 0 {
return Err(Error::AudioCapture(format!("WASAPI init failed: HRESULT 0x{:08X}", hr_value)));
}
let result: Result<()> = (|| {