You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to repro an issue I was having trouble debugging using a rust wrapper to this library (https://github.com/RamiHg/soundio-rs), I tried out a similar example sio_record.c, and it worked. I found that the different is that the rust one by default checks the layout_error field https://github.com/RamiHg/soundio-rs/blob/master/src/device.rs#L473 and the example in this repo doesn't. When I added the following check to the example I get the same error I got in the rust version ("incompatible device"):
if (instream->layout_error) {
fprintf(stderr, "unable to open input stream: %s", soundio_strerror(instream->layout_error));
return1;
}
Is this a bug in the example, or can this error be ignored in some cases?
The text was updated successfully, but these errors were encountered:
In order to repro an issue I was having trouble debugging using a rust wrapper to this library (https://github.com/RamiHg/soundio-rs), I tried out a similar example
sio_record.c
, and it worked. I found that the different is that the rust one by default checks the layout_error field https://github.com/RamiHg/soundio-rs/blob/master/src/device.rs#L473 and the example in this repo doesn't. When I added the following check to the example I get the same error I got in the rust version ("incompatible device"):Is this a bug in the example, or can this error be ignored in some cases?
The text was updated successfully, but these errors were encountered: