CSE 380 – Computer Game Programming Audio Engineering.

Slides:



Advertisements
Similar presentations
4/1/2017 4:16 PM.
Advertisements

Introduction to Digital Audio
                      Digital Audio 1.
Kimberly S. Rodriguez English Language Training Institute (ELTI), University of North Carolina at Charlotte December 2008.
Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
Investigating the sound quality of different audio file formats In this activity, we are going to record a short voice sample with a sound recording tool,
Music and Technology Open Source/Proprietary Software USB studio Microphone (about $90-$150)‏ Computer/Laptop (Mac/Windows/Linux)‏ MP3/iPod player Personal.
A stereo audio file 1. Audio Channels Number of audio channels determines number of waveforms in a recording Two relevant types of recording Stereo recording.
Chapter 5.5 Audio Programming
Sound in multimedia How many of you like the use of audio in The Universal Machine? What about The Universal Computer? Why or why not? Does your preference.
Sound can make multimedia presentations dynamic and interesting.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Royalty Free Music for Schools Do You Have the To Do a Podcast?
Sound Engine Evaluation for Computer Games Case Study: fmod Jyun-Ming Chen.
4.2 Multimedia Elements Audio 1. Learning Outcomes: At the end of the lesson, students should be: a) describe the purpose of using audio in multimedia.
Renee Gigax  Audacity is a free tool that records and edits sounds  If you need to download Audacity, go to and select.
Free open source audio recording and editing software 1Using Audacity.
CHAPTER 16 Audio © 2008 Cengage Learning EMEA. LEARNING OBJECTIVES In this chapter you will learn about: – –The fundamentals of sound – –DirectX Audio.
4.3. S OUND Use of sound within games. In lecture exploration of answers to frequently asked student questions.
COMPUTER AUDIO CGDD 4003 What is Sound?  Compressions of air or other media (such as water or metal) from something vibrating  Sounds are made up of.
Digital audio recording Kimmo Tukiainen. My background playing music since I was five first time in a studio at fourteen recording on my own for six months.
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Chapter 5.5 Audio Programming. 2 Audio Programming Audio in games is more important than ever before.
Chapter 9 Audio.
Free Sound Recorder By FreeAudioVideoSoft. Pricing & Installation Software is absolutely FREE With agreement to terms and conditions Installation Requirements:
Introduction to Sound Sounds are vibrations that travel though the air or some other medium A sound wave is an audible vibration that travels through.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Audio. Why Audio Essential tool for – Interface – Narrative – Setting & Mood.
Digital recording software Presented by Andrew Littlefield.
ACE-HIGH MP3 WAV WMA OGG Converter By :: Natharat Kaewrawang
Digital Audio Basics with Bill Wade.
Activity 2 Mix a WAV file and the sound from a youtube video In this activity, we are going to mix the WAV file created in Activity 1and the sound file.
11 Adding Sounds Session 7.1. Session Overview  Find out how to capture and manipulate sound on a Windows PC  Show how sound is managed as an item of.
XNA Basic XACT tool. What’s format song file which XNA support? Only.wav because it’s not compress file. Beside, you need XACT project ( XACT project)
Activity 1 Record and edit your voice using Audacity 1.Download Audacity (a free and open source audio editing software from
SLIDE 1 Audio Recording Tips & Guidelines | © 2009 Knowbase Networks AUDIO RECORDING TIPS & GUIDELINES LESSON ONE: An Introduction to Digital Audio Creation.
Multimedia Technology and Applications Chapter 2. Digital Audio
Games Development Practices Sound Effects & OpenAL CO2301 Games Development 1 Week 15.
Alice Workshop Working with Sound. Sound Working with sound is appealing to students Demo: Penguin Sound.
ITEC Final Presentation For Fall 2011 Table of Content –Basic Requirements  Audacity  Inskcape  GIMP  Blender  Animation of 2D and 3D.
There are two main types of CD that you can create with CD burning software; it is important to burn an Audio CD (Music CD) and not a Data CD. In order.
Sound DirectMusic & DirectSound. DirectShow Video Formats DirectShow is an open architecture, it can support any format as long as there are filters to.
Audacity in Music Therapy Claire Gentry Intro to Music Technology.
What is Audacity? Audacity is a free audio editor and recording program which is classified as open source software. It is easily downloaded to one’s.
Speech Processing and Recognition © Florida Institute of Technology Access audio data in real time and apply to speech recognition Final Exam Project By.
Sound and Digital Sound v © Allan C. Milne Abertay University.
Glencoe Introduction to Multimedia Chapter 8 Audio 1 sound effect An artificially created or enhanced sound used to achieve an effect (without speech or.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
Editing and Publishing Web Recordings John Bordley, Carillonneur Sewanee: The University of the South.
CSE3AGT - Audio Paul Taylor Sound Technologies XACT (Cross Platform Audio Creation Tool) – XACT is the audio production tool for Xbox development,
Glencoe Introduction to Multimedia Chapter 8 Audio 1 Section 8.1 Audio in Multimedia Audio plays many roles in multimedia. Effective use in multimedia.
Session 18 The physics of sound and the manipulation of digital sounds.
How to Create a Podcast. Podcasting “is the distribution of audio or video files, such as radio programs or music videos, over the Internet using either.
Editing Digital AudioLab#7 Audacity is a free, easy-to-use and an open source platform audio editor and recorder for Windows, Mac OS, Linux and other operating.
Introduction to Digital Audio
mp3DirectCut Audio recording.
Digital Audio Basics.
Sound Editing Transfer your records and tapes to digital format
Introduction to Digital Audio
                      Digital Audio 1.
Multimedia: making it Work
Introduction to Digital Audio
Introduction to Digital Audio
Audio Multimedia Broadcast.
Introduction to Digital Audio
Activity 1 Record and edit your voice using Audacity
Games Development Practices Sound Effects
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
Introduction to Digital Audio
Chapter 9 Audio.
Presentation transcript:

CSE 380 – Computer Game Programming Audio Engineering

Audio Engineering For games: –Sound Effects and Music Sometimes overlooked If not done right, can ruin a game If done right, enhances experience –seamless with gameplay –not too obvious

What do you need sound effects for? Discernable Game Events –Collisions tied to collision response –Movement footfalls, rockets, tied to sprite state –Ambiance background noise tied to game state –Gameplay Events tied to victory, area triggers, power-ups, death, etc to help give your game meaningful play

Recording & Exporting Sounds Lots of tools to use Recommendation: Audacity –free –easy to learn to use –exports to many formats Ex: mp3 –easy to mix sounds to make complex sound effects –

Sound Properties Frequency –measures speed of sound vibrations –measured in cycles per second (Hz) –audible range for human ear: 20Hz – 20,000Hz Intensity –amount of air molecules pushed around by sound –pressure applied by sound wave –measured in decibels (dB), a log scale sound of whispering 5ft. Away: 20 dB sound of thunder: 120dB

Sound File Formats WAV –stores raw sound data, is the largest format –easy on CPU MP3/M4A, OGG, & WMA –compressed formats ~10:1 compression over WAV –negligible quality difference from WAV –decompression CPU hit MIDI –programmed sound

Long vs. Short sound files For short sound effects: –store as MP3/OGG/etc. –decompress data in memory at load time –play as needed in decompressed format –heavy on memory, light on CPU For long sound effects or music: –store as MP3/OGG/etc. –play in compressed format –again, heavy on CPU usage, light on memory

Music What role does music play? –emotion –recognition –themes –fill the void Sound & Music: –should compliment the gameplay, not overwhelm it

For the programmer Lots of libraries Keep game code platform independent Options: –FMod and tools (FMod Designer, etc.) –DirectSound (deprecated) –XAudio/XACT (soon to be deprecated –XAudio2/XACT3 (soon part of Windows) See DirectX Documentation for C++ –lots of other libraries as well (Miles, WWise, etc.)

Microsoft Audio Technologies

For us? XACT3 –designer controlled content –easy audio tweaking XAudio2 –API to build sound engine

What’s so great about that? The audio designer can focus on audio Easy to: –test many different sound effects & songs –choose the right sounds & music –alter/improve sounds & music All without having to bother a programmer

XBox CPU cores –each with 2 hardware threads –Common approach: run XAudio2 and XACT on their own threads Has real-time XMA decoder hardware –XMA is XBox format for WMA –Windows uses ADPCM Windows is more complicated –How many cores? GetLogicalProcessorInformation

XAudio Tools/APIs XACT XACT Command-Line Tool AdpcmEncode Wave Merge Tool XMA Command-Line Encoder XMA2 Command-Line Encoder xWMA Command-Line Encoder X3DAudio XAPO XAPOFX XMAEncoder

My Recommendation Each team pick an audio engineer for Benchmark 3 That person will become the XACT3/XAudio2 expert –start with the DirectX Audio manual The other team members can continue to concentrate on gameplay Go to DirectX install directory Go to Samples/

XACT Terminology Start by reading about: –wave –wave bank –sound –sound bank –track –events –cues

IXAudio2 Core of the engine –enumerate available audio devices –configure properties –create & destroy voices –monitor performance It’s a COM object –create after CoInitializeEx One can create multiple instances –each operates in own thread

Voices Used to process, manipulate, and play audio data –Source Voices used to stream audio data –Submix Voices manipulate audio data –Mastering Voices send data to audio hardware

Audio Graph A collection of voices

To Play a Sound 1.Initialize XAudio2 2.Load Audio Data –init a WAVEFORMATEX & XAUDIO2_BUFFER 3.Create a Source Voice 4.Pass data to the voice 5.Start the voice

For the Designer Determine all the sound effects for your game Produce such a list right now This is a to-do list of recordings to make

A very good reference to start with

References Programming with DirectX : Sound in DirectX – XAudio 2 – Game Coding Complete, 4 th Edition –McShaffry/Graham DirectX Software Development Kit Documentation