Changeset 54967 in vbox for trunk/src/VBox
- Timestamp:
- Mar 26, 2015 3:26:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp
r54491 r54967 42 42 */ 43 43 #include "DrvAudio.h" 44 #include "AudioMixBuffer.h" 45 44 46 #include "VBoxDD.h" 45 47 #include "vl_vbox.h" … … 116 118 { 117 119 if (pcSamples) 118 *pcSamples = 256;120 *pcSamples = _1K; 119 121 } 120 122 … … 133 135 { 134 136 if (pcSamples) 135 *pcSamples = 256;137 *pcSamples = _1K; 136 138 } 137 139 … … 149 151 uint32_t *pcSamplesPlayed) 150 152 { 153 /* Always pretend consuming all samples available at this time. */ 154 const uint32_t cSamplesPlayed = audioMixBufSize(&pHstStrmOut->MixBuf); 155 audioMixBufFinish(&pHstStrmOut->MixBuf, cSamplesPlayed); 156 151 157 if (pcSamplesPlayed) 152 *pcSamplesPlayed = UINT32_MAX;158 *pcSamplesPlayed = cSamplesPlayed; 153 159 154 160 return VINF_SUCCESS; … … 158 164 uint32_t *pcSamplesCaptured) 159 165 { 166 /* Never capture anything. */ 160 167 if (pcSamplesCaptured) 161 168 *pcSamplesCaptured = 0;
Note:
See TracChangeset
for help on using the changeset viewer.