We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d40c7f commit b3cff2bCopy full SHA for b3cff2b
dshowcapture.hpp
@@ -208,6 +208,9 @@ struct AudioConfig : Config {
208
209
/** Audio playback mode */
210
AudioMode mode = AudioMode::Capture;
211
+
212
+ /** Desired buffer */
213
+ int buffer = 0;
214
};
215
216
class DSHOWCAPTURE_EXPORT Device {
source/device.cpp
@@ -802,7 +802,7 @@ bool HDevice::ConnectFilters()
802
std::string::npos);
803
804
if (!streamEngine && audioCapture != nullptr)
805
- SetAudioBuffering(10);
+ SetAudioBuffering(audioConfig.buffer ? audioConfig.buffer : 10);
806
807
success = ConnectPins(PIN_CATEGORY_CAPTURE, MEDIATYPE_Audio,
808
audioFilter, filter);
0 commit comments