Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
fix(capture): resume monitoring on same-device default apply
Veyra Goal Agentc55a4bf547ed
diff --git a/src/source/AverMediaAudioSwitch.cpp b/src/source/AverMediaAudioSwitch.cppindex bc67022f..350cb3d8 100644--- a/src/source/AverMediaAudioSwitch.cpp+++ b/src/source/AverMediaAudioSwitch.cpp@@ -540,6 +540,7 @@ bool AverMediaAudioSwitch::apply(const std::wstring& deviceName, const std::wstrRawCall refresh{impl.exports.isNonPcm, impl.opener()};std::string refreshError;impl.status.nonPcmActive = callVendor(refresh, refreshError) && (refresh.result & 0xFF) != 0;+ if(monitor)startMonitoring();return true;}if (!impl.loadComponent()) {diff --git a/tests/unit/AverMediaPassthroughTests.cpp b/tests/unit/AverMediaPassthroughTests.cppindex 774c1755..3281ad75 100644--- a/tests/unit/AverMediaPassthroughTests.cpp+++ b/tests/unit/AverMediaPassthroughTests.cpp@@ -35,6 +35,8 @@ int wmain(int argc,wchar_t** argv){try{require(audio.apply(name,path,false)&&!audio.active(),"graph rebuild pauses the previous monitor on the same card");audio.alignPassthroughOnce();require(count(0)==1,"rebuild of armed card does not force enable");audio.startMonitoring();require(audio.active()&&count(4)==2,"monitor resumes after rebuild");+ require(audio.apply(name,path,false)&&!audio.active(),"same-card setup can defer monitoring again");+ require(audio.apply(name,path)&&audio.active()&&count(4)==3,"legacy/default same-card apply resumes the monitor");audio.alignPassthroughOnce();require(count(0)==1,"already armed is never forced again");require(!audio.setPassthrough(false)&&count(1)==0,"never disarm an active source");config(20,1,0,0,1);audio.alignPassthroughOnce();require(count(0)==0,"positive format and armed state preserved");