x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Audio player: runtime memory usage optimization

Hello world, its been a while.

I have created a very basic BP based audio player for the BGM Tracks. It utilizes sound cues to select a random track from a list of music tracks.

alt text

Looking at the size map alone, its more than i would like it to be and i understand the reason is due to the track references being used in the cue. However, i would prefer not having to load them all to the runtime memory. Rather, just having it load one track at a time to the memory (or 2 at most).

Does anyone know a better & more efficient approach to a bgm player ?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 27 '18 at 12:10 PM in Blueprint Scripting

avatar image

hellwitu
85 8 10 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I found a property to enable file "streaming" in audio file details section. Couldn't find any documentation or info reg it except that it used to be an experimental feature. If someone has a link please do share.

On enabling, it streams the sound file during run time instead of prior loading to the memory. The size map is negligible and i am still able to play the sound cue without any apparent issues at this point. Will continue with streaming unless i have a reason for otherwise.

Im quite certain that the feature has zero impact to the packaging size but it does reduce the run time usage dramatically. ;)

more ▼

answered Feb 27 '18 at 04:18 PM

avatar image

hellwitu
85 8 10 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question