Book Image

Source SDK Game Development Essentials

By : Brett Joseph Bernier
Book Image

Source SDK Game Development Essentials

By: Brett Joseph Bernier

Overview of this book

Table of Contents (18 chapters)
Source SDK Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Importing sounds


Just like models and textures, sounds require their own folder within the sound folder:

C:\Program Files\Steam\steamapps\username\half-life 2 episode 2\ep2\sound

The source engine supports both MP3 and WAV files. Any .mp3 file can be placed in the sound folder, and this will be recognized by Source and played in-game. However, WAV files are a bit trickier. The highest quality WAV file that Source will play is PCM 16-bit WAV at 44 KHz (refer to https://developer.valvesoftware.com/wiki/).

Click on the Refresh sounds button in the sound browser within Hammer to reload the new sounds so that they can be previewed. WAV files are the only files that can be previewed.