diff --git a/engine/MUNGA/AUDCMP.cpp b/engine/MUNGA/AUDCMP.cpp index 1e20e18..f83597e 100644 --- a/engine/MUNGA/AUDCMP.cpp +++ b/engine/MUNGA/AUDCMP.cpp @@ -632,6 +632,10 @@ void } Check(audioComponentSocket.GetCurrent()); + if (getenv("BT_AUDIO_SPATIAL")) { static int s_mix=0; if (s_mix++<80) + DEBUG_STREAM << "[mix] mixer=" << (void*)this << " -> tgt=" << (void*)audioComponentSocket.GetCurrent() + << " outCtl=" << (int)outputControlID << " in[" << index << "]=" << control_value + << " sum=" << mixed_value << "\n" << std::flush; } audioComponentSocket.GetCurrent()->ReceiveControl( outputControlID, mixed_value @@ -1319,6 +1323,10 @@ void nextSampleTime += sampleDuration; Check(audioComponentSocket.GetCurrent()); + if (getenv("BT_AUDIO_SPATIAL")) { static int s_sh=0; if (s_sh++<60) + DEBUG_STREAM << "[snh] this=" << (void*)this << " -> tgt=" << (void*)audioComponentSocket.GetCurrent() + << " ctlID=" << (int)audioControlID << " val=" << currentValue + << " range=[" << minValue << "," << maxValue << "]\n" << std::flush; } audioComponentSocket.GetCurrent()->ReceiveControl( audioControlID, currentValue diff --git a/engine/MUNGA/AUDWTHR.h b/engine/MUNGA/AUDWTHR.h index c36f706..abb6b49 100644 --- a/engine/MUNGA/AUDWTHR.h +++ b/engine/MUNGA/AUDWTHR.h @@ -521,6 +521,13 @@ template MemoryStream_Read(stream, &controlValueBoundary1); MemoryStream_Read(stream, &controlValueBoundary2); MemoryStream_Read(stream, &exponent); + + if (getenv("BT_ATTRBIND_LOG")) { static int s_scf=0; if (s_scf++<160) + DEBUG_STREAM << "[scalecfg] attrPtr=" << (void*)attributePointer + << " comp=" << (void*)audioComponentSocket.GetCurrent() + << " ctlID=" << (int)controlID + << " aB=[" << attributeValueBoundary1 << "," << attributeValueBoundary2 << "]" + << " cB=[" << controlValueBoundary1 << "," << controlValueBoundary2 << "]\n" << std::flush; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~