Changeset 68085 in vbox for trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp
- Timestamp:
- Jul 21, 2017 12:52:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp
r65694 r68085 135 135 */ 136 136 static DECLCALLBACK(int) drvHostNullAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 137 const void *pvBuf, uint32_t c bBuf, uint32_t *pcbWritten)137 const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten) 138 138 { 139 139 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 140 140 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 141 141 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 142 AssertReturn(c bBuf, VERR_INVALID_PARAMETER);142 AssertReturn(cxBuf, VERR_INVALID_PARAMETER); 143 143 144 144 RT_NOREF(pInterface, pStream, pvBuf); … … 146 146 /* Note: No copying of samples needed here, as this a NULL backend. */ 147 147 148 if (pc bWritten)149 *pc bWritten = cbBuf; /* Return all bytes as written. */148 if (pcxWritten) 149 *pcxWritten = cxBuf; /* Return all bytes as written. */ 150 150 151 151 return VINF_SUCCESS; … … 157 157 */ 158 158 static DECLCALLBACK(int) drvHostNullAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 159 void *pvBuf, uint32_t c bBuf, uint32_t *pcbRead)159 void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead) 160 160 { 161 161 RT_NOREF(pInterface, pStream); 162 162 163 163 /* Return silence. */ 164 RT_BZERO(pvBuf, c bBuf);165 166 if (pc bRead)167 *pc bRead = cbBuf;164 RT_BZERO(pvBuf, cxBuf); 165 166 if (pcxRead) 167 *pcxRead = cxBuf; 168 168 169 169 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.