Lines Matching refs:pCfgHandle

364 static audfmt_e audio_get_conf_fmt (PCFGMNODE pCfgHandle, const char *envname,
371 if(pCfgHandle == NULL || envname == NULL) {
376 rc = CFGMR3QueryStringAlloc(pCfgHandle, envname, &var);
384 static int audio_get_conf_int (PCFGMNODE pCfgHandle, const char *key, int defval, int *defaultp)
388 if(pCfgHandle == NULL || key == NULL) {
394 rc = CFGMR3QueryInteger(pCfgHandle, key, &u64Data);
409 static const char *audio_get_conf_str (PCFGMNODE pCfgHandle, const char *key,
415 if(pCfgHandle == NULL || key == NULL) {
420 rc = CFGMR3QueryStringAlloc(pCfgHandle, key, &val);
453 static void audio_process_options (PCFGMNODE pCfgHandle, const char *prefix,
470 /* if pCfgHandle is NULL, let NULL be passed to get int and get string functions..
473 if(pCfgHandle != NULL) {
478 pCfgChildHandle = CFGMR3GetFirstChild(pCfgHandle);
480 pCfgHandle = pCfgChildHandle;
489 pCfgChildHandle = CFGMR3GetFirstChild(pCfgHandle);
493 pCfgHandle = pCfgChildChildHandle;
512 *intp = audio_get_conf_int(pCfgHandle, opt->name, *intp, &def);
519 *fmtp = audio_get_conf_fmt (pCfgHandle, opt->name, *fmtp, &def);
526 *strp = audio_get_conf_str (pCfgHandle, opt->name, *strp, &def);
1574 static int audio_driver_init (PCFGMNODE pCfgHandle, AudioState *s, struct audio_driver *drv)
1577 audio_process_options (pCfgHandle, drv->name, drv->options);
1667 static int AUD_init (PCFGMNODE pCfgHandle, PPDMDRVINS pDrvIns, const char *drvname)
1683 audio_process_options (pCfgHandle, "AUDIO", audio_options);
1707 done = !audio_driver_init (pCfgHandle, s, drvtab[i]);
1724 done = !audio_driver_init (pCfgHandle, s, drvtab[i]);
1730 done = !audio_driver_init (pCfgHandle, s, &no_audio_driver);
2042 static DECLCALLBACK(int) drvAudioConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
2054 if (!CFGMR3AreValuesValid(pCfgHandle, "AudioDriver\0StreamName\0"))
2068 rc = CFGMR3QueryStringAlloc (pCfgHandle, "AudioDriver", &drvname);
2072 rc = CFGMR3QueryStringAlloc (pCfgHandle, "StreamName", &audio_streamname);
2076 rc = AUD_init (pCfgHandle, pDrvIns, drvname);