Compare commits
2 Commits
8a7beb69a6
...
44d477de07
| Author | SHA1 | Date | |
|---|---|---|---|
| 44d477de07 | |||
| da1fa27048 |
@@ -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<()> = (|| {
|
||||
|
||||
Reference in New Issue
Block a user