libgdx / gdx-realsense

RealSense support for libGDX
52 stars 28 forks source link

PXCCapture:DeviceInfo.getStreams fails with multiple streams on a device. #4

Open jimthev opened 9 years ago

jimthev commented 9 years ago

While trying to figure out why my depth stream isn't showing anything in the StreamViewer.java test I found that getStreams in DeviceInfo fails.

The return value of my PXCCapture_DeviceInfo_streams_get is 7 because the device has 3 types of streams.

From the StreamType docs in sdkmanuals.pdf: "The StreamType enumerator itemizes supported video stream types. The value can be Bit-OR'ed to represent multiple stream combinations."

So getStreams fails when it tries to return a single StreamType via the enum lookup.