- Timestamp:
- Jan 10, 2025 4:46:13 PM (10 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp
r106061 r107692 2775 2775 pThis->IHostAudio.pfnStreamCapture = drvHstAudCaHA_StreamCapture; 2776 2776 2777 int rc = RTCritSectInit(&pThis->CritSect);2778 AssertRCReturn(rc, rc);2779 2780 2777 /* 2781 2778 * Validate and read configuration. … … 2784 2781 2785 2782 char *pszTmp = NULL; 2786 rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "InputDeviceID", &pszTmp);2783 int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "InputDeviceID", &pszTmp); 2787 2784 if (RT_SUCCESS(rc)) 2788 2785 { 2789 2786 rc = drvHstAudCaSetDevice(pThis, &pThis->InputDevice, true /*fInput*/, false /*fNotify*/, pszTmp); 2787 if (RT_FAILURE(rc)) 2788 LogRel(("CoreAudio: Failed to set input device to '%s' (%Rrc)\n", pszTmp, rc)); 2790 2789 PDMDrvHlpMMHeapFree(pDrvIns, pszTmp); 2791 2790 } … … 2797 2796 { 2798 2797 rc = drvHstAudCaSetDevice(pThis, &pThis->OutputDevice, false /*fInput*/, false /*fNotify*/, pszTmp); 2798 if (RT_FAILURE(rc)) 2799 LogRel(("CoreAudio: Failed to set output device to '%s' (%Rrc)\n", pszTmp, rc)); 2799 2800 PDMDrvHlpMMHeapFree(pDrvIns, pszTmp); 2800 2801 } … … 2807 2808 pThis->pIHostAudioPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIHOSTAUDIOPORT); 2808 2809 AssertReturn(pThis->pIHostAudioPort, VERR_PDM_MISSING_INTERFACE_ABOVE); 2810 2811 rc = RTCritSectInit(&pThis->CritSect); 2812 AssertRCReturn(rc, rc); 2809 2813 2810 2814 #ifdef CORE_AUDIO_WITH_WORKER_THREAD
Note:
See TracChangeset
for help on using the changeset viewer.