diff --git a/engine/MUNGA/AUDCMP.cpp b/engine/MUNGA/AUDCMP.cpp index f83597e..362f97c 100644 --- a/engine/MUNGA/AUDCMP.cpp +++ b/engine/MUNGA/AUDCMP.cpp @@ -473,6 +473,9 @@ void while ((audio_component = iterator.ReadAndNext()) != NULL) { Check(audio_component); + if (getenv("BT_AUDIO_SPATIAL")) { static int s_sp2=0; if (s_sp2++<200) + DEBUG_STREAM << "[split] " << (void*)this << " -> tgt=" << (void*)audio_component + << " ctl=" << (int)control_ID << "/" << control_value << "\n" << std::flush; } audio_component->ReceiveControl(control_ID, control_value); } } diff --git a/engine/MUNGA/AUDIO.cpp b/engine/MUNGA/AUDIO.cpp index b017424..f2d96e0 100644 --- a/engine/MUNGA/AUDIO.cpp +++ b/engine/MUNGA/AUDIO.cpp @@ -1,3 +1,4 @@ +#include #include "munga.h" #pragma hdrstop @@ -133,6 +134,8 @@ void // audioFrameCount = Now().ticks; Verify(audioFrameCount < LONG_MAX); + if (getenv("BT_AUDIO_SPATIAL")) { static long s_hx=0; if ((++s_hx % 300)==0) + DEBUG_STREAM << "[audioclock] frame=" << audioFrameCount << " execs=" << s_hx << "\n" << std::flush; } //set current listener orientation Vector3D headVelocity; diff --git a/engine/MUNGA/AUDSEQ.cpp b/engine/MUNGA/AUDSEQ.cpp index 24a6d73..3d0f802 100644 --- a/engine/MUNGA/AUDSEQ.cpp +++ b/engine/MUNGA/AUDSEQ.cpp @@ -1,3 +1,4 @@ +#include #include "munga.h" #pragma hdrstop @@ -67,6 +68,9 @@ void { Check(this); Check(audio_component); + if (getenv("BT_AUDIO_SPATIAL")) { static int s_ev=0; if (s_ev++<200) + DEBUG_STREAM << "[seqev] tgt=" << (void*)audio_component + << " ctl=" << (int)audioControlID << "/" << audioControlValue << "\n" << std::flush; } audio_component->ReceiveControl(audioControlID, audioControlValue); } diff --git a/engine/MUNGA/AUDWTHR.cpp b/engine/MUNGA/AUDWTHR.cpp index 1f3c0e0..e4acd62 100644 --- a/engine/MUNGA/AUDWTHR.cpp +++ b/engine/MUNGA/AUDWTHR.cpp @@ -962,6 +962,14 @@ AudioStateTrigger::AudioStateTrigger( MemoryStream_Read(stream, &excludeTransition); MemoryStream_Read(stream, &excludeState); + if (getenv("BT_ATTRBIND_LOG")) { static int s_stc=0; if (s_stc++<120) + DEBUG_STREAM << "[statecfg] attrPtr=" << (void*)attributePointer + << " comp=" << (void*)audioComponentSocket.GetCurrent() + << " trigState=" << triggerState << " inv=" << (int)inverseTrigger + << " ctl=" << (int)controlID << "/" << controlValue + << " excl=" << (int)excludeTransition << "/" << excludeState + << "\n" << std::flush; } + PrimeWatcher(); }