Game Development Reference
In-Depth Information
Figure 15-4 . Enable non-destructive audio editing in Audacity
Select the “ Make a copy of the files before editing (safer) ” radio button option,
and check the “ Don't warn again, and always use my choice above ” checkbox,
which will turn Audacity 2 into a non-destructive non-linear digital audio editing soft-
ware package. Click on the OK button and we'll be ready to start your digital audio
data optimization work process. We will be optimizing our digital audio data, but not
compressing it, and I will get into why that is next.
Optimization Versus Compression: The Audio
Memory Footprint
You might be wondering why I am using the uncompressed, pulse code modulated
(PCM) Wave (.wav) file format instead of the industry standard .MP3 file format that
many of you use for your digital audio music file storage. I will cover the reason for
this up front, before we start the optimization process. In digital audio, there are really
two stages to data footprint optimization. First you optimize the sample resolution
(32-bit original recording, 24-bit HD audio, 16-bit CD Quality audio and 8-bit lower
quality audio) and the sample frequency (44.1kHz, 22.05kHz, 11.025kHz are the
primary frequency levels that still maintain enough data for a quality result), and then
you apply the compression. The compression affects your file size; in this case it is
your .JAR (Java Resources) file.
So, why are we not compressing our files into MP3 format, to make our .JAR file a
few kilobytes smaller? A primary reason for this is because MP3 is a “lossy” format,
which throws away original data (and quality) for the audio sample. Since the JavaFX
AudioClip class is going to take our digital audio assets and decompress them into
 
Search WWH ::




Custom Search