debug-audio.sh 769 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # Script to run the game with GLib debugging and Qt multimedia logging enabled
  3. cd "$(dirname "$0")/.." || exit 1
  4. # Build first
  5. echo "Building in debug mode..."
  6. make clean
  7. make debug -j$(nproc)
  8. if [ $? -ne 0 ]; then
  9. echo "Build failed!"
  10. exit 1
  11. fi
  12. echo ""
  13. echo "========================================"
  14. echo "Starting game with audio debugging..."
  15. echo "========================================"
  16. echo ""
  17. echo "GLib errors will be logged but not fatal"
  18. echo "Qt multimedia logging enabled"
  19. echo ""
  20. # Run with GLib debugging (but don't make warnings fatal - they're from GStreamer internals)
  21. # Use GST_DEBUG for more GStreamer info if needed
  22. G_SLICE=always-malloc \
  23. QT_LOGGING_RULES="qt.multimedia.*=true" \
  24. GST_DEBUG=2 \
  25. ./build/standard_of_iron