Changeset 82451 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 12:46:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r82377 r82451 516 516 /** Whether debugging is enabled or not. */ 517 517 bool fEnabled; 518 bool afAlignment[7]; 518 519 /** Path where to dump the debug output to. 519 520 * Defaults to VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH. */ 520 char szOutPath[RTPATH_MAX];521 R3PTRTYPE(char *) pszOutPath; 521 522 } AC97STATEDEBUG; 522 523 … … 1089 1090 1090 1091 char szPath[RTPATH_MAX]; 1091 int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg. szOutPath, szFile,1092 int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.pszOutPath, szFile, 1092 1093 0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAGS_NONE); 1093 1094 AssertRC(rc2); … … 1100 1101 RTStrPrintf(szFile, sizeof(szFile), "ac97DMAReadSD%RU8", pStream->u8SD); 1101 1102 1102 rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg. szOutPath, szFile,1103 rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThisCC->Dbg.pszOutPath, szFile, 1103 1104 0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAGS_NONE); 1104 1105 AssertRC(rc2); … … 4141 4142 N_("AC97 configuration error: failed to read debugging enabled flag as boolean")); 4142 4143 4143 rc = pHlp->pfnCFGMQueryStringDef(pCfg, "DebugPathOut", pThisCC->Dbg.szOutPath, sizeof(pThisCC->Dbg.szOutPath), 4144 VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH); 4144 rc = pHlp->pfnCFGMQueryStringAllocDef(pCfg, "DebugPathOut", &pThisCC->Dbg.pszOutPath, VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH); 4145 4145 if (RT_FAILURE(rc)) 4146 4146 return PDMDEV_SET_ERROR(pDevIns, rc, … … 4148 4148 4149 4149 if (pThisCC->Dbg.fEnabled) 4150 LogRel2(("AC97: Debug output will be saved to '%s'\n", pThisCC->Dbg. szOutPath));4150 LogRel2(("AC97: Debug output will be saved to '%s'\n", pThisCC->Dbg.pszOutPath)); 4151 4151 4152 4152 /*
Note:
See TracChangeset
for help on using the changeset viewer.