gtreshchev / RuntimeAudioImporter

Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime.
MIT License
308 stars 67 forks source link

(Suggestion)Can you add a blueprint that plays in the background when the software loses focus? #65

Open i12cu84 opened 3 months ago

i12cu84 commented 3 months ago

At present, my environment is UE 5.2.1, which can be used normally after packing Android, but it cannot play audio in the background of Android. I went to the UE forum and looked it up. I tried a lot of things, but it didn't work.

For example, the following method: 1.To manipulate the file: Defaultengin.ini and BaseEngine.ini are added [Audio] UnfocusedVolumeMultiplier=1.0 2.UE project setting Level Editor -> Miscellaneous -> Sound -> Allow Background Audio (tick) 3.UE BlueprintFunctionLibrary to Cpp code UFUNCTION(BlueprintCallable, Category = "") static float SetSUVM() { FApp::SetUnfocusedVolumeMultiplier(1.0f); return FApp::GetUnfocusedVolumeMultiplier(); }

...emmm,I might need your help?

A UE(5.2.1) based music player written by me as a hobby (I will open source it on github sometime)

i12cu84 commented 3 months ago

I have uploaded it here https://github.com/i12cu84/UPlayer