Skip to content

Commit

Permalink
#112 docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter1 authored and wouter committed Apr 27, 2019
1 parent ba9d4cc commit b47fbff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/EMUUSBAudio/USBAudioObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ UInt8 EMUUSBAudioConfigObject::GetEndpointPollInterval(UInt8 interfaceNum, UInt8
}


/*! Use GetTerminalLink to get the unit number of the input or output terminal that the
endpoint is associated with. With that terminal, you can figure out if it's an
input or output terminal, and the direction of the endpoint.
*/
UInt8 EMUUSBAudioConfigObject::GetIsocEndpointDirection(UInt8 interfaceNum, UInt8 altInterfaceNum) {
EMUUSBAudioStreamObject * thisStream = GetStreamObject(interfaceNum, altInterfaceNum);
EMUUSBAudioControlObject * thisControl = GetControlObject(theControlInterfaceNum, 0);
Expand Down
10 changes: 8 additions & 2 deletions src/EMUUSBAudio/USBAudioObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,14 @@ class EMUUSBAudioConfigObject : public OSObject {
UInt8 GetEndpointPollInt(UInt8 interfaceNum, UInt8 altInterfaceNum, UInt8 address);
UInt8 GetIsocEndpointAddress (UInt8 interfaceNum, UInt8 altInterfaceNum, UInt8 direction);

/*! Use GetTerminalLink to get the unit number of the input or output terminal that the endpoint is associated with.
With that terminal, you can figure out if it's an input or output terminal, and the direction of the endpoint. */
/*! Get direction of an endpoint?
Use GetTerminalLink to get the unit number of the input or output terminal that the
endpoint is associated with. With that terminal, you can figure out if it's an
input or output terminal, and the direction of the endpoint.
@param interfaceNum the USB interfacenumber
@param altInterfaceNum I assume this is the subtype if the interface.
@return 0xFF for unknown direction, seems kUSBOut=0 , kUSBIn=1 (at the computer's side). A conversion is already done as what the EMU indicates as "out" is actually "in" at the computer side and vice versa.
*/
UInt8 GetIsocEndpointDirection (UInt8 interfaceNum, UInt8 altInterfaceNum);
UInt8 GetIsocEndpointSyncType (UInt8 interfaceNum, UInt8 altInterfaceNum, UInt8 address);
UInt8 GetIndexedFeatureUnitID (UInt8 interfaceNum, UInt8 altInterfaceNum, UInt8 featureUnitIndex);
Expand Down

0 comments on commit b47fbff

Please sign in to comment.