(Page 24 of 80 in this chapter)


adiGetParms

Description

Returns all default parameter values for a given parameter structure.

Prototype

DWORD adiGetParms( unsigned parmid,
void *buffer,
unsigned size )

parmid Parameter structure ID.

buffer Buffer to receive parameter values.

size Size of buffer.

Return Values

Events

None.

Details

This function retrieves the default parameter values for the structure identified by its parmid. AG Access writes these values to the address specified in buffer. The size argument specifies the amount of available memory at the address and must be large enough to contain the returned parameter structure.

See Also

adiGetParmByName, adiGetParmInfo, adiConfigParm

Example


DWORD myPlayFromMemory( CTAHD ctahd, unsigned encoding,
                        void *buffer, unsigned bufsize, unsigned gain )
{
    ADI_PLAY_PARMS playparms;

    adiGetParms( ADI_COLLECT_PARMID, &playparms, sizeof playparms );
    playparms.gain = gain;

    return adiPlayFromMemory( ctahd, encoding, buffer, bufsize, &playparms );
}



(Page 24 of 80 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.