Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Music corrupts if Win11 audio output is changed during playback #2489

Open
Richard-L opened this issue Feb 11, 2025 · 4 comments
Open

Music corrupts if Win11 audio output is changed during playback #2489

Richard-L opened this issue Feb 11, 2025 · 4 comments
Labels
TR1 TR2 TRX bug A bug with TRX

Comments

@Richard-L
Copy link
Collaborator

2025-02-11.22-30-04.mp4

On Win11 the shortcut for audio output device "on the fly" changing is CTRL+WIN+V. It's an overlay that's sadly not captured in the video but here's a screenshot from reddit:

Image

The issue is also present in TR1X.

@rr-
Copy link
Collaborator

rr- commented Feb 11, 2025

@Richard-L can you test if it's the same with FMVs, which use a different audio decoding process?

@Richard-L
Copy link
Collaborator Author

Can't get the error in the FMVs when starting TR2 despite multiple switching back and forth. But after the main menu music will immediately have the error.

Seems like the FMV audio decoding is fine 👌

@rr- rr- moved this to Ready in TRX Dev tracker Feb 14, 2025
@walkawayy
Copy link
Collaborator

Interesting. I just checked my game, and it seems only music files are affected (ex- title music, cutscenes). FMVs and game sounds (ex- pistol gun shots) play fine.

@rr-
Copy link
Collaborator

rr- commented Feb 26, 2025

Audio streams need to renegotiate the channel layout once the device changes. The FMV code which is originally based off ffplay.c supports this, but music streams do not - I never included this logic, foolishly believing it's such a corner case that it will be irrelevant to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TR1 TR2 TRX bug A bug with TRX
Projects
Status: Ready
Development

No branches or pull requests

3 participants