ERIS CORE

◆ getTypeListItem()

char * AudioDirector::getTypeListItem ( const char *  function,
uint16_t  i 
)

returns the requested index of the type list
if the requested index is out of bounds the string "NULL" is returned

Parameters
function
i
Returns
char*

Definition at line 319 of file AudioDirector.cpp.

319  {
320  uint16_t count = queryTypesByFunction(function);
321  if (i > count) return (char*)nullStr; //out of bounds index return "NULL"
322  char* p;
323  p = *query_result[i];
324  return p;
325 }
const char PROGMEM p[][16]
Definition: Eris.h:247
char **volatile query_result[MAX_AUDIO_TYPES_BY_FUNCTION_QUERY_RESULT]
Definition: AudioDirector.h:81
uint16_t queryTypesByFunction(const char *function)
query the obj pool for the list of audio blocks belonging to the given function type

References p, query_result, and queryTypesByFunction().

Referenced by audioDirectorGetTypeListCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: