Merge pull request #1951 from jpark37/audio-buffering
Fix audio buffering for devices like GV-USB2
This commit is contained in:
@@ -801,6 +801,11 @@ static inline bool IsEncoded(const VideoConfig &config)
|
||||
wstrstri(config.name.c_str(), L"stream engine") != NULL;
|
||||
}
|
||||
|
||||
static inline bool IsDecoupled(const VideoConfig &config)
|
||||
{
|
||||
return wstrstri(config.name.c_str(), L"GV-USB2") != NULL;
|
||||
}
|
||||
|
||||
inline void DShowInput::SetupBuffering(obs_data_t *settings)
|
||||
{
|
||||
BufferingType bufType;
|
||||
@@ -814,6 +819,7 @@ inline void DShowInput::SetupBuffering(obs_data_t *settings)
|
||||
useBuffering = bufType == BufferingType::On;
|
||||
|
||||
obs_source_set_async_unbuffered(source, !useBuffering);
|
||||
obs_source_set_async_decoupled(source, IsDecoupled(videoConfig));
|
||||
}
|
||||
|
||||
static DStr GetVideoFormatName(VideoFormat format);
|
||||
|
Reference in New Issue
Block a user