Loading audio files

The following are the three settings that dictate the manner in which an audio file is loaded:

  • Preload Audio Data
  • Load In Background
  • Load Type

Our audio files are initially packaged as binary data files that are bundled with our application, which reside on the hard disk of the device (although in some cases they downloaded from somewhere on the internet). Loading audio data simply means pulling it into main memory (RAM) so that it can be later processed by audio decoders, which then convert the data into audio signals to our headphones, or speakers. However, how loading happens will vary enormously based on the previous three settings. The first setting, Preload Audio Data determines whether audio data will be automatically ...

Get Unity 2017 Game Optimization - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.