【UE5】ウインドウが非アクティブな時でも音を出し続ける

この記事は約1分で読めます。

ここにやり方が書いてあった。正しい解決策じゃないと言っている人もいるようだが。

the sound is lost when program run in the background
Any luck with this one? I’m looking for a way to do the same thing too.
Audio is muted when game doesn't have focus (=when it's not the foreground app) :: Raw Data General Discussion
Love the game! Just one request: please override Unreal Engine's default behavior which causes Unreal to mute the audio ...

DefaultEngine.iniに次を書いておけばいい。

[Audio]
UnfocusedVolumeMultiplier=1.0

これだとフォーカスがある時にボリュームを下げておいて、フォーカスを失うとボリュームどうなるんだ?と思ったが、ちゃんと設定した音量のまま音が出た。もしかしたらUnfocusedVolumeMultiplier=0.5とかにすると、バックグランド再生時は音量半分とかにできるのかな?とやってみたら音量が下がった。0.0にすると音が出なくなる。

コメント

タイトルとURLをコピーしました