Changeset 89424 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 1, 2021 10:22:01 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144777
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
r89422 r89424 324 324 325 325 /** Init once. */ 326 static RTONCE g_PulseAudio InitOnce = RTONCE_INITIALIZER;326 static RTONCE g_PulseAudioLibInitOnce = RTONCE_INITIALIZER; 327 327 328 328 /** @callback_method_impl{FNRTONCE} */ 329 static DECLCALLBACK(int32_t) drvHostAudioPu sleInitOnce(void *pvUser)329 static DECLCALLBACK(int32_t) drvHostAudioPulseLibInitOnce(void *pvUser) 330 330 { 331 331 RT_NOREF(pvUser); 332 332 LogFlowFunc(("\n")); 333 333 334 RTLDRMOD h Lib= NIL_RTLDRMOD;335 int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &h Lib);334 RTLDRMOD hMod = NIL_RTLDRMOD; 335 int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod); 336 336 if (RT_SUCCESS(rc)) 337 337 { 338 338 for (unsigned i = 0; i < RT_ELEMENTS(g_aImportedFunctions); i++) 339 339 { 340 rc = RTLdrGetSymbol(h Lib, g_aImportedFunctions[i].pszName, (void **)g_aImportedFunctions[i].pfn);340 rc = RTLdrGetSymbol(hMod, g_aImportedFunctions[i].pszName, (void **)g_aImportedFunctions[i].pfn); 341 341 if (RT_FAILURE(rc)) 342 342 { … … 354 354 * Try to dynamically load the PulseAudio libraries. 355 355 * 356 * @returns VBox status code 356 * @returns VBox status code. 357 357 */ 358 358 int audioLoadPulseLib(void) 359 359 { 360 360 LogFlowFunc(("\n")); 361 return RTOnce(&g_PulseAudio InitOnce, drvHostAudioPusleInitOnce, NULL);361 return RTOnce(&g_PulseAudioLibInitOnce, drvHostAudioPulseLibInitOnce, NULL); 362 362 } 363 363
Note:
See TracChangeset
for help on using the changeset viewer.