(Page 22 of 80 in this chapter)
adiGetParmByName
Description
- Retrieves a function parameter field or structure for a given parameter name.
Prototype
- DWORD adiGetParmByName( char *parmname,
void *buffer,
unsigned size )
- parmname Pointer to string containing the parameter name to retrieve.
- buffer Buffer that receives the current value for the specified parameter.
- size Size of buffer (the size must be large enough to store the parameters being retrieved).
Return Values
Events
- None.
Details
- This function retrieves the current value for the parameter identified as parmname. AG Access writes the value to the address specified in buffer. The size argument specifies how much memory is available at the address and must be large enough to contain the returned parameter value.
- The parmname format is structname or structname[.fieldname]. If the field name is omitted, the complete current parameter structure is returned.
- This function is intended primarily for utility applications; e.g., displaying the current value of a parameter based on its name.
- In general, it is more efficient to use adiGetParms to get default parameters.
See Also
- adiGetParms, adiGetParmInfo, adiConfigParm
Example
void myShowPlayGain()
{
INT32 playgain;
adiGetParmByName( "adiplay.gain", &playgain, sizeof playgain );
printf( "Default adiplay.gain is %d dB\n", playgain );
}
(Page 22 of 80 in this chapter)
Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights
reserved.