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
First only for Linux, use the /dev/snd/by-path mapping
Consider using the extra USB information from LibUSB:
Context context = new Context();
int result = LibUsb.init(context);
if (result != LibUsb.SUCCESS)
throw new LibUsbException("Unable to initialize libusb.", result);
// Read the USB device list
DeviceList list = new DeviceList();
int result2 = LibUsb.getDeviceList(null, list);
if (result2 < 0)
throw new LibUsbException("Unable to get device list", result);
try {
// Iterate over all devices and scan for the right one
for (Device device : list) {
DeviceDescriptor descriptor = new DeviceDescriptor();
result = LibUsb.getDeviceDescriptor(device, descriptor);
if (result != LibUsb.SUCCESS)
throw new LibUsbException("Unable to read device descriptor", result);
System.out.println("Bus number: " + LibUsb.getBusNumber(device));
System.out.println("Port number: " + LibUsb.getPortNumber(device));
System.out.println(descriptor.dump());
System.out.println("");
}
} finally {
// Ensure the allocated device list is freed
LibUsb.freeDeviceList(list, true);
}
The text was updated successfully, but these errors were encountered:
For now it works fine without this extra info. Probably useful in a configuration module of some sort that can be split from the regular domain and audio-streaming. Closing this issue, follow-up can be created later. The code snipper is still available in the repo in src/test/java.
First only for Linux, use the /dev/snd/by-path mapping
Consider using the extra USB information from LibUSB:
The text was updated successfully, but these errors were encountered: