Skip to content

fix(batch): disable mpv audio only for offline vr hybrid mode#131

Open
hwoarangc wants to merge 1 commit into
ack00gar:mainfrom
hwoarangc:fix/batch-vrhybrid-disable-mpv-audio
Open

fix(batch): disable mpv audio only for offline vr hybrid mode#131
hwoarangc wants to merge 1 commit into
ack00gar:mainfrom
hwoarangc:fix/batch-vrhybrid-disable-mpv-audio

Conversation

@hwoarangc
Copy link
Copy Markdown
Contributor

Summary

This PR prevents AUDCLNT_E_DEVICE_INVALIDATED during batch runs by disabling mpv audio only for offline VR hybrid mode, not globally for all batch trackers.

Why

The WASAPI error comes from audio endpoint invalidation. For offline VR hybrid, audio output is unnecessary and can interrupt long batch runs. Other trackers may still need audio behavior, so this change keeps their default behavior intact.

Changes

  • add runtime set_audio_enabled() to mpv GL/SW display backends
  • disable mpv audio only when batch mode is OFFLINE_VR_HYBRID_CHAPTER
  • keep mpv audio behavior unchanged for other batch trackers
  • restore mpv audio state from audio.enabled when batch exits

- add runtime set_audio_enabled() to mpv GL/SW display backends
- disable mpv audio only when batch mode is OFFLINE_VR_HYBRID_CHAPTER
- keep mpv audio behavior unchanged for other batch trackers
- restore mpv audio state from audio.enabled when batch exits
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.

1 participant