Example #1
0
void
Term::inputsToList(TermList& out)
{
    out.resize(numInputs());
    for (int i=0; i < numInputs(); i++)
        out.setAt(i, input(i));
}
Example #2
0
Term::Input*
Term::inputInfo(int index)
{
    if (index >= numInputs())
        return NULL;
    return &this->inputs[index];
}
Example #3
0
Term*
Term::input(int index)
{
    if (index >= numInputs())
        return NULL;
    return this->inputs[index].term;
}
Example #4
0
OsStatus MpResource::getCurrentLatency(int &latency, int input, int output) const
{
   if (  input >= 0 && input < numInputs()
      && output >= 0 && output < numOutputs())
   {
      latency = 0;
      return OS_SUCCESS;
   }

   return OS_NOT_FOUND;
}
TInt COpenMAXALTestModule::al_audioiodevcapitf_GetAssociatedAudioInputs( CStifItemParser& aItem )
    {
    TInt status(KErrNone);
    XAresult res;
    
    TUint deviceId(0);
    TInt sizeArr(0);
    XAuint32 devId(0);
    XAint32 numInputs(0);
    XAuint32 deviceIdArr[2];
    
    status = aItem.GetNextInt(deviceId);
    if(!status)
        {
        devId = deviceId;
        status = aItem.GetNextInt(sizeArr);
        if(!status)
            {
            numInputs = sizeArr;
            if(m_AIODevCapItf)
                {
                res = (*m_AIODevCapItf)->GetAssociatedAudioInputs(
                        m_AIODevCapItf, devId, &numInputs, deviceIdArr);
                status = res;
                }
            else
                {
                status = KErrNotFound;
                }        
            }
        else
            {
            if(m_AIODevCapItf)
                {
                res = (*m_AIODevCapItf)->GetAssociatedAudioInputs(
                        m_AIODevCapItf, devId,&numInputs, NULL);
                status = res;
                }
            else
                {
                status = KErrNotFound;
                }                
            }
        }
    else
        {
        status = KErrGeneral;
        }
    return status;
    }
Example #6
0
int
Term::numDependencies() const
{
    return numInputs() + 1;
}