Skip to content

streams: add DEBUG logging to SmartCrossFade build and fallback paths#3936

Draft
mattamays-ai wants to merge 1 commit into
music-assistant:devfrom
mattamays-ai:feature/smart-crossfade-debug-logging
Draft

streams: add DEBUG logging to SmartCrossFade build and fallback paths#3936
mattamays-ai wants to merge 1 commit into
music-assistant:devfrom
mattamays-ai:feature/smart-crossfade-debug-logging

Conversation

@mattamays-ai
Copy link
Copy Markdown

Adds two DEBUG-level log lines to help diagnose smart crossfade behaviour:

  1. fades.py — after _build() completes, logs both track BPMs, diff %,
    bar count, crossfade duration, beat-alignment offset, and whether
    time-stretch was applied.
  2. mixer.py — when falling back to standard crossfade, logs the specific
    reason (missing BPM, missing beats, no analysis data, etc.) so it is
    clear in logs why smart crossfade was skipped for a given transition.
    Validated on nightly build 2.9.0.dev2026052006.

Adds two DEBUG-level log lines to help diagnose smart crossfade behaviour:
1. fades.py — after _build() completes, logs both track BPMs, diff %,
   bar count, crossfade duration, beat-alignment offset, and whether
   time-stretch was applied.
2. mixer.py — when falling back to standard crossfade, logs the specific
   reason (missing BPM, missing beats, no analysis data, etc.) so it is
   clear in logs why smart crossfade was skipped for a given transition.
Validated on nightly build 2.9.0.dev2026052006.
@MarvinSchenkel
Copy link
Copy Markdown
Contributor

Can you explain why this is required? We already have extensive verbose logging that you can turn on for smart fades via system > settings > streams > smart fades log level. That should contain all the info needed to debug smart fades related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants