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"

UE4 play a specific sound without directly imported from a file

hello, I have a problem about importing a sound file, .wav file, to UE browser. The demand is that, when you click the button on the UI of a level, a window then will appeared, which can provide a series of options that are paths, where my audio is saved. So basically, I need to get my audio file from a path , instead of directly importing it to BP or something else. I have looked into many documentations about sound and audio, but I still have no idea of how to design it. I hope to get some help from you, thank you very much.

Product Version: UE 4.11
more ▼

asked Dec 16 '16 at 03:01 AM in Using UE4

avatar image

6 2 1

avatar image jolihuchxa STAFF Dec 16 '16 at 12:00 PM

Are you asking how to import the sound into UE4, or how to hook it up to a button in BP?

avatar image Minus_Kelvin STAFF Dec 16 '16 at 07:42 PM

It sounds like he's wanting to make it a function of his game/project to be able to browse to disk select a sound from disk, and play it directly.

There is no direct support for that but if you're a programmer you can technically do it. You'd have to load the .wav file yourself, parse it, then create a new USoundWave UObject, then feed the parsed PCM data into the object directly. That USoundWave object can then be saved as an asset I believe... I'm not super familiar with that side of UE4 (creating new UObject/UAssets from user-generated content... where to store it, etc). But I believe it's possible. Then once you have a USoundWave, you can play it through the audio engine using the normal playsound/spawnsound API, etc.

It's certainly not going to be an easy thing and there's no documentation about how to do it.

avatar image fightinghj Dec 19 '16 at 06:45 AM

Thank you for your detail explanations, and by the way, not he, I am a girl.

avatar image fightinghj Dec 19 '16 at 06:44 AM

Yeah, and I have solved it. Thanks!

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

0 answers: sort voted first
Be the first one to answer this question
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