Changeset 70536 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 11, 2018 2:00:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/AudioDriver.cpp
r70533 r70536 43 43 44 44 /** 45 * Returns the next free LUN of the audio device driver 45 * Returns the next free LUN of the audio device driver 46 46 * chain. 47 * 48 * @return unsigned Next free LUN in audio device driver chain. 47 * 48 * @return unsigned Next free LUN in audio device driver chain. 49 49 */ 50 50 unsigned AudioDriver::getFreeLUN(void) … … 74 74 * Configures the audio driver (to CFGM) and attaches it to the audio chain. 75 75 * 76 * @returns IPRT status code. 77 * @param pThis Audio driver to detach. 76 * @returns IPRT status code. 77 * @param pThis Audio driver to detach. 78 78 * @param pCfg Audio driver configuration to use for the audio driver to attach. 79 79 */ … … 95 95 96 96 LogFunc(("strDevice=%s, uInst=%u, uLUN=%u\n", pCfg->strDev.c_str(), pCfg->uInst, pCfg->uLUN)); 97 97 98 98 vrc = pThis->Configure(pCfg, true /* Attach */); 99 99 if (RT_SUCCESS(vrc)) … … 101 101 102 102 if (RT_SUCCESS(vrc)) 103 { 104 pThis->mfAttached = true; 105 } 106 else 103 { 104 pThis->mfAttached = true; 105 } 106 else 107 107 LogRel(("VRDE: Failed to attach audio driver, rc=%Rrc\n", vrc)); 108 108 … … 113 113 * Detaches an already attached audio driver from the audio chain. 114 114 * 115 * @returns IPRT status code. 115 * @returns IPRT status code. 116 116 * @param pThis Audio driver to detach. 117 117 */ … … 132 132 133 133 LogFunc(("strDevice=%s, uInst=%u, uLUN=%u\n", pCfg->strDev.c_str(), pCfg->uInst, pCfg->uLUN)); 134 134 135 135 vrc = PDMR3DriverDetach(ptrVM.rawUVM(), pCfg->strDev.c_str(), pCfg->uInst, pCfg->uLUN, "AUDIO", 136 136 0 /* iOccurrence */, 0 /* fFlags */); … … 154 154 * 155 155 * @returns VBox status code. 156 * @param strDevice The PDM device name. 157 * @param uInstance The PDM device instance. 158 * @param uLUN The PDM LUN number of the driver. 156 * @param pCfg Audio driver configuration to use. 159 157 * @param fAttach Whether to attach or detach the driver configuration to CFGM. 160 158 * … … 187 185 { 188 186 if (!pDevLun) 189 { 187 { 190 188 LogRel2(("VRDE: Configuring audio driver\n")); 191 189
Note:
See TracChangeset
for help on using the changeset viewer.