These nodes are all in Rama's BP library now, check it out! https://forums.unrealengine.com/show...l=1#post118564
--------------------
Hey everyone!
I was listening to an audiobook yesterday and thought it would be cool to build an immersive environment (campire w/ old man storyteller) for listening to audiobooks in VR. Seemed like a nice little side project to promote my game and get something finished and released early on. I looked around but didn't find any way to play a sound file from disk, which of course would be the ideal way do a VR audiobook player. I did find this helpful code from @keru in his forays into making a music player, and using that I was able to whip up a couple of blueprint nodes.
Play Sound From Disk Blueprint Lib
Github Repo
Zip File Download
This plugin provides two blueprint nodes, Play Sound At Location From File, and Play Sound Attached From File. They are identical to Play Sound At Location and Play Sound Attached except that they take a file path rather than a sound asset.
Thanks to @keru for the sound loading code, and @Rama for the blueprint library plugin example code.
Future Work
* Currently this doesn't have the other nodes, like those for playing Dialogue. It should be very easy to implement those, feel free to submit a pull request!
Edit: Links added.
Edit: There was no bug (there is no spoon, Neo). User error. The time is in seconds. For some odd reason I figured it would be 0-1. Derp. Plugin works!
--------------------
Hey everyone!
I was listening to an audiobook yesterday and thought it would be cool to build an immersive environment (campire w/ old man storyteller) for listening to audiobooks in VR. Seemed like a nice little side project to promote my game and get something finished and released early on. I looked around but didn't find any way to play a sound file from disk, which of course would be the ideal way do a VR audiobook player. I did find this helpful code from @keru in his forays into making a music player, and using that I was able to whip up a couple of blueprint nodes.
Play Sound From Disk Blueprint Lib
Github Repo
Zip File Download
This plugin provides two blueprint nodes, Play Sound At Location From File, and Play Sound Attached From File. They are identical to Play Sound At Location and Play Sound Attached except that they take a file path rather than a sound asset.
Thanks to @keru for the sound loading code, and @Rama for the blueprint library plugin example code.
Future Work
* Currently this doesn't have the other nodes, like those for playing Dialogue. It should be very easy to implement those, feel free to submit a pull request!
Edit: Links added.
Edit: There was no bug (there is no spoon, Neo). User error. The time is in seconds. For some odd reason I figured it would be 0-1. Derp. Plugin works!
Comment