Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 21 ■ Questions and answers: Finishing the setup Methods and digital audio

The next thing that we need to cut in half is the amount of sample resolution, reducing a 32-bit (float)
audio sample down to the 16-bit PCM resolution commonly known as “CD-quality” audio. This is done
using the drop-down arrow on top of the Mono, 44100Hz 32-bit float indicator, on the far left of the
waveform audio, as shown in Figure 21-29.


Click this drop-down arrow and go into the Format submenu at the bottom of the main menu, which
can be seen at the bottom-left in Figure 21-30. This reveals the selected 32-bit float format and allows you to
select either a 16-bit PCM (CD) or 24-bit PCM (HD) audio resolution format. Since we are trying to conserve
system memory for game audio assets, we’ll choose a 16-bit, 44.1 KHz format.


Figure 21-29. A seven-second Mono 44.1Hz 32-bit float sample is now more than 400 percent less data than
the original sample


Figure 21-28. Select the entire sample on both tracks and use Tracks ➤ Stereo Track to Mono to combine the
sample

Free download pdf