EMU-driver icon indicating copy to clipboard operation
EMU-driver copied to clipboard

cleanup USBAudioObject

Open Wouter1 opened this issue 10 years ago • 0 comments

Could use better error reporting and less code duplication

Eg use this code once instead of everywhere again

    EMUUSBAudioStreamObject*    stream = GetStreamObject(interfaceNum, altInterfaceNum);
    if (!stream) {
        IOLog("Bug? EMUUSBAudioConfigObject::GetEndpointPollInterval stream not opening");
        return 1; // can we cancel the whole thing?
    }

similar for getting the endpoint.

Wouter1 avatar Jan 25 '15 10:01 Wouter1