Lines Matching refs:portIndex

302 INT32 PORT_GetPortType(void* id, INT32 portIndex) {
306 if (portIndex < 0 || portIndex >= mixer->portCount) {
307 ERROR1("PORT_GetPortType: line (portIndex = %d) not found\n", portIndex);
311 AudioObjectPropertyScope scope = mixer->ports[portIndex].scope;
312 AudioStreamID streamID = mixer->ports[portIndex].streamID;
319 OS_ERROR1(err, "PORT_GetPortType(kAudioStreamPropertyTerminalType), portIndex=%d", portIndex);
325 TRACE4("PORT_GetPortType (portIndex=%d), scope=%s, termType=0x%04x (%s)\n",
326 (int)portIndex, FourCC2Str(scope), (int)terminalType, FourCC2Str(terminalType));
355 TRACE2("<<PORT_GetPortType (portIndex=%d) = %d\n", portIndex, ret);
359 INT32 PORT_GetPortName(void* id, INT32 portIndex, char* name, INT32 len) {
364 if (portIndex < 0 || portIndex >= mixer->portCount) {
365 ERROR1("PORT_GetPortName: line (portIndex = %d) not found\n", portIndex);
369 AudioStreamID streamID = mixer->ports[portIndex].streamID;
375 OS_ERROR1(err, "PORT_GetPortName(stream name), portIndex=%d", portIndex);
386 OS_ERROR1(err, "PORT_GetPortName(device name), portIndex=%d", portIndex);
396 TRACE2("<<PORT_GetPortName (portIndex = %d) = %s\n", portIndex, name);
450 void PORT_GetControls(void* id, INT32 portIndex, PortControlCreator* creator) {
453 TRACE1(">>PORT_GetControls (portIndex = %d)\n", portIndex);
455 if (portIndex < 0 || portIndex >= mixer->portCount) {
456 ERROR1("<<PORT_GetControls: line (portIndex = %d) not found\n", portIndex);
460 PortLine *port = &(mixer->ports[portIndex]);
471 OS_ERROR1(err, "PORT_GetControls (portIndex = %d) get OwnedObject size", portIndex);
482 OS_ERROR1(err, "PORT_GetControls (portIndex = %d) get OwnedObject values", portIndex);
510 TRACE1("<<PORT_GetControls (portIndex = %d): no owned AudioControls\n", portIndex);
645 TRACE1("<<PORT_GetControls (portIndex = %d)\n", portIndex);