fix(audio): env opt-out of the audio device for CI test runners (#13762) b0bffd0d2f
fix(audio): env opt-out of the audio device, CI VMs stall five minutes on TCC

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
diff --git a/.rive_head b/.rive_head
index f98b5eb..71b5b08 100644
--- a/.rive_head
+++ b/.rive_head
@@ -1 +1 @@
-8a999c31c6126cd81b47e92973a43cdf585758a4
+b0bffd0d2fcfe6adf9d7b21ebc88ad3ec374f089
diff --git a/src/audio/audio_engine.cpp b/src/audio/audio_engine.cpp
index 72adeec..76f038a 100644
--- a/src/audio/audio_engine.cpp
+++ b/src/audio/audio_engine.cpp
@@ -8,6 +8,7 @@
 
 #include <algorithm>
 #include <cmath>
+#include <cstdlib>
 
 using namespace rive;
 
@@ -202,6 +203,12 @@
 
 #ifdef EXTERNAL_RIVE_AUDIO_ENGINE
     engineConfig.noDevice = MA_TRUE;
+#else
+    // CI VMs can stall for minutes opening a CoreAudio device.
+    if (std::getenv("RIVE_NO_AUDIO_DEVICE") != nullptr)
+    {
+        engineConfig.noDevice = MA_TRUE;
+    }
 #endif
 
     ma_engine* engine = new ma_engine();