Changeset 55920 in vbox for trunk/src/VBox/Devices/Audio/DevIchHda.cpp
- Timestamp:
- May 18, 2015 7:11:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r55828 r55920 2210 2210 { 2211 2211 uint32_t cbRead = 0; 2212 rc = audioMixerProcessSinkIn(pSink, AUDMIXOP_BLEND, pBdle->au8HdaBuffer, cb2Copy, &cbRead);2212 rc = AudioMixerProcessSinkIn(pSink, AUDMIXOP_BLEND, pBdle->au8HdaBuffer, cb2Copy, &cbRead); 2213 2213 if (RT_SUCCESS(rc)) 2214 2214 { … … 2475 2475 if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */ 2476 2476 { 2477 audioMixerRemoveStream(pSink, pDrv->LineIn.phStrmIn);2478 rc = audioMixerAddStreamIn(pSink,2477 AudioMixerRemoveStream(pSink, pDrv->LineIn.phStrmIn); 2478 rc = AudioMixerAddStreamIn(pSink, 2479 2479 pDrv->pConnector, pDrv->LineIn.pStrmIn, 2480 2480 0 /* uFlags */, &pDrv->LineIn.phStrmIn); … … 2507 2507 if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */ 2508 2508 { 2509 audioMixerRemoveStream(pThis->pSinkOutput, pDrv->Out.phStrmOut);2510 rc = audioMixerAddStreamOut(pThis->pSinkOutput,2509 AudioMixerRemoveStream(pThis->pSinkOutput, pDrv->Out.phStrmOut); 2510 rc = AudioMixerAddStreamOut(pThis->pSinkOutput, 2511 2511 pDrv->pConnector, pDrv->Out.pStrmOut, 2512 2512 0 /* uFlags */, &pDrv->Out.phStrmOut); … … 2543 2543 2544 2544 /* Set the volume. Codec already converted it to the correct range. */ 2545 audioMixerSetSinkVolume(pSink, &vol);2545 AudioMixerSetSinkVolume(pSink, &vol); 2546 2546 2547 2547 LogFlowFuncLeaveRC(rc); … … 3589 3589 if (pThis->pMixer) 3590 3590 { 3591 audioMixerDestroy(pThis->pMixer);3591 AudioMixerDestroy(pThis->pMixer); 3592 3592 pThis->pMixer = NULL; 3593 3593 } … … 3858 3858 if (RT_SUCCESS(rc)) 3859 3859 { 3860 rc = audioMixerCreate("HDA Mixer", 0 /* uFlags */, &pThis->pMixer);3860 rc = AudioMixerCreate("HDA Mixer", 0 /* uFlags */, &pThis->pMixer); 3861 3861 if (RT_SUCCESS(rc)) 3862 3862 { … … 3868 3868 streamCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS; 3869 3869 3870 rc = audioMixerSetDeviceFormat(pThis->pMixer, &streamCfg);3870 rc = AudioMixerSetDeviceFormat(pThis->pMixer, &streamCfg); 3871 3871 AssertRC(rc); 3872 3872 3873 3873 /* Add all required audio sinks. */ 3874 rc = audioMixerAddSink(pThis->pMixer, "[Playback] PCM Output",3874 rc = AudioMixerAddSink(pThis->pMixer, "[Playback] PCM Output", 3875 3875 AUDMIXSINKDIR_OUTPUT, &pThis->pSinkOutput); 3876 3876 AssertRC(rc); 3877 3877 3878 rc = audioMixerAddSink(pThis->pMixer, "[Recording] Line In",3878 rc = AudioMixerAddSink(pThis->pMixer, "[Recording] Line In", 3879 3879 AUDMIXSINKDIR_INPUT, &pThis->pSinkLineIn); 3880 3880 AssertRC(rc); 3881 3881 3882 rc = audioMixerAddSink(pThis->pMixer, "[Recording] Microphone In",3882 rc = AudioMixerAddSink(pThis->pMixer, "[Recording] Microphone In", 3883 3883 AUDMIXSINKDIR_INPUT, &pThis->pSinkMicIn); 3884 3884 AssertRC(rc); … … 3886 3886 /* There is no master volume control. Set the master to max. */ 3887 3887 PDMAUDIOVOLUME vol = { false, 255, 255 }; 3888 rc = audioMixerSetMasterVolume(pThis->pMixer, &vol);3888 rc = AudioMixerSetMasterVolume(pThis->pMixer, &vol); 3889 3889 AssertRC(rc); 3890 3890 }
Note:
See TracChangeset
for help on using the changeset viewer.