joshuajnoble / ofxKinectCommonBridge

A wrapper for the simple Kinect for Windows library developed at Microsoft in partnership with myself & James George
Other
89 stars 36 forks source link

initSensor only handles index 0 #8

Open Craniac opened 10 years ago

Craniac commented 10 years ago

ofxKinectCommonBridge::initSensor, when it calls KinectGetPortIDByIndex, has a 0 hard-coded for the index. This should probably be "id" instead of 0.

elliotwoods commented 10 years ago

confirmed here changing line 430 to :

    if( !SUCCEEDED(KinectGetPortIDByIndex( id, _countof(portID), portID ))) {

fixes the issue