They should be 16 bit, little endian (again… generally don’t worry) uncompressed format at any bitrate. Your WAV files can be in PCM, ADPCM or DVI ADPCM format, although if using defaults you most likely don’t need to worry about this detail. ![]() If you’re source files aren’t in wav format, you can easily convert using the freely available and completely awesome Audacity sound editor. Also it neatly steps around a number of licensing concerns, such as the patent minefield that is mp3. Being in an uncompressed source format enables Unreal to offer a lot of power as you will see shortly. So the fact your soundtrack is 10MB in size isn’t as damning as it seems, as Unreal will take care of the required conversions for you. Don’t worry, this isn’t as big of a hindrance as it sounds, as Unreal simply takes care of the compression and conversion steps required for you. You can import your sound files in whatever format you want, so long as it’s wav. So then… what audio files work with Unreal Engine? Mp3, mp4, ogg? Nope… WAV. Importing Audio Filesįirst we need some audio to work with. We will simply wire each button to fire off our examples. ![]() ![]() We are going to be creating a simple UI to fire off audio events: If unfamiliar with creating a UI with UMG ( Unreal Motion Graphics ), be sure to read the previous tutorial.Īs always there is an HD video version of this tutorial available right here. For the application controller I created a simple UI that fire off the playing of audio. In this section we are going to learn how to import and play audio files in Unreal Engine. With the release of version 4.8 of Unreal Engine, playing audio actually became a great deal easier for 2D games with the addition of PlaySound2D.
0 Comments
Leave a Reply. |