New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Video Game Design

by: Alayna Veum

Video Game Design CS 4455

Alayna Veum

GPA 3.81


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 0 page Class Notes was uploaded by Alayna Veum on Monday November 2, 2015. The Class Notes belongs to CS 4455 at Georgia Institute of Technology - Main Campus taught by Staff in Fall. Since its upload, it has received 16 views. For similar materials see /class/234125/cs-4455-georgia-institute-of-technology-main-campus in ComputerScienence at Georgia Institute of Technology - Main Campus.

Similar to CS 4455 at

Popular in ComputerScienence


Reviews for Video Game Design


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 11/02/15
cs 4455 39Video Game Design amp39 Implementation March 31 2006 Audio Insert Disclaimer Her e Qverview 39 5 Todayifs Lectur e 5 What I m talking about now 7 3 Audio Theor y 3 Digitizing Sound 5 Game Implementation 5 High Level APIs Why is AUdior important What is audio39 3 Inside your ear is an eardrum 5 A thin niece of skin quot When it vibrates your brain interprets this as sound 393 Changes in air pressure often cause this vibration How Audio Works 5gtAn objectproduces sound when it vibrates 39 7395 This moves air particles 5Those particles in tarn move other particles 39 7 r Wm r v minqu ummm 4 39 5 Terms to Note 395Wave1ength distance between repeating points 5Amplitude non negative height of thewave AudiQTerminology 5 Terms 3 Period quot How long it takes between cycles 5 Frequency How many cycles occur 5 These are inverses AudioiTerminology XfxjkXy f The faster they 100p the higher their frequency The SI unit for this is gltchz 1 Hz once a second 1 KHz one thousand times a second AudiQTerminology 393 Intensity the power of the sound 5A Fairly large scale so usually expressed logarithmically I lOlogm ar PdB l LUgm D U 5 With Sound I0 10A 12 WmAZ L Common DB Level 10dB means 10 times as powerful 393dB roughly twice as powerful Fen fdcts about quotaudio Strength 85dB iall 1 to heari cal to ndows eardrums can cause death Digitizing Sound Sampling 39539At a given inter val sample the amplitude of the wave Sampling quot Nyquist Limit g rNyquist Limvit algiven sampling m can only r epr esent Frequencies up to39 one half that rate Sampling 5Typica1 Factors on a computer 3 How many times per second 5 How many levels can we differentiate between 5 How many channels 39Sampling 395 CD Quality audio A gt 44kHz 44100 samplessec 7395 16 bit 65536 possible levels 5 2 channels left and right 5176400 bytessec 5This is approximately 6 seconds per megabyte Sampling 39 5 Low Q uality Au39dio 5 8kHZ 839samp1es per second 7 3 8 bit 1 byte 3 1 channel 38000 bytessec 5 About two minutes per megabyte r n39g Compa 39r39iu39s39on r n39g Compa 39r39iu39s39on Whaf can we do Or39 39a brief history of computer audio 7quotFMsynthesisquot 395 Used in early systems like the GameBoy 5 Hardware continually produced one or more sine waves sometimes other I shapes too 5 Software could modify frequency and 39amplitude 5 Can be done in very little space the BIGGEST GameBoy games were about rlZMB 39 FIMV39L SYnthesii S defn39o MIDI synthesiS39 39 3 Common in39 PC sound cards and many consoles such as the Super Nintendo SNES Genesis your cellphone 5 MIDI files contain instructionsto 39 turn on or off various instruments 39539Instruments are externally defined 5Therefore small file Format I 395 Sound can differ player to player 39 MIDISynthesis demo 7quotModulerAudioquot 39 3 Like MIDI but you can or are required to supply your own instruments 3 7M0D S3MXM IT File Formats 5 Used in39 the PlayStation also common on the GameBoy Advance 5 Usually still small if you can share instruments Modu1e39Audio DeMo V RedBookvAudio 5 Music is treamed Fr om CD 3 Commonly used on the SegaCD 7 5 May need to buffer or avoid when you need to read From the CD 5Takes a lot of spoce r 7 R dBoQk39 Audio D mo I Re lis tic Depictiori39of Bonus Stage rCOmpressed Audio General Com39pr essio n 7395 Lossy small changes okay 5 Loseless must be 100 preserved rCOmpressed Audio 3 Audio Compression 5 Bit Redaction 74 DPCM encodes the differences between subsequentsamples the D is for differential or delta 5ADPCM is a more advanced version rCOmpressed Audio 5 Audio Compression 3 Psycho acoustic 5Designed with human hearing in mind 5MP3 AAC OGG WMA etc L CompreSsed Audio 39 quot L 39 Demo v 539Nahl 39xGGMing V39Implementation deing quotImplementation 5 Sound in 39r39novst games is divided into two parts 3 Background music 395 Spund Effects quot Background Music 7 39 UnlikiemovierS apd rTV not tir39ned gt 5 Ambieht rind lobping39 5quotC39an be stir rmed Sound Effects 3 Characteristic x 3 Typically very short 7 3 Often tied to an event 5 Examples Gim Fir e character is hit explosion speech etc 5 Generally stored in memory Mixing 5In many game consoles separate HW For these Functions is not unusual 7395 Hardware MIDI standard in some 5 IF not convert to sampled in software 39 Mixing 550Ftwar e mixing is easy 7 3 IF sample rates are the same 3 Ju st add 393 Beware of exceeding the max V Mixinngxamp1e39 def mixSounddest source For i in rangel mingetLengtHdest getLengthseurce SourceValue getSampleVulueAtsource i destValue getSampleValueAtdest i sethmpleValueAtdest i sourceValue destValue Buffering 5 When reading or converting sound you need to stay ahead of the audio out device but can t convert the whole isong 39 39 v 5Two techniques For buffers 5 Circuiar buffers read and write in same buffer 39 BuFFer chaining write to buffer read From the other swap High Level APIS 5Audio is a lot sir pler than graphics in a game 5A lot of APIs can be condensed tozy 7395 P10ysampie loops 5 StOpSOmp1e 39 5 setPan 5 SetVolume I 3 SetSpeed Example SQund APIs 39 3 Cross platform 2D APIs gt Java Sound 3 SDL 5 Quicinme Sound APIs with 3D support 5 OpenAL 3 Dir eptSound NOT cr o39ssplatfor m Example JavaSound equence sequence 39 V MidiSystemgetSequencenew javanetURLur1 Create a sequencer For the sequence Sequencer sequencer MidiSystemgetSequencer sequenceropen sequencersetSequencesequence sequencerstar See packages under javaxsound such as javaxsoundimidi and javax sound sampled 7POSitionql Audio 5 Basic Theory 3 Sound distance gnd volume are inversely related 39 5 Sound differences in the ears help determine position 3D Audio 39 5 Problem with traditional two speaker or headphone setup 3 Forward vs Behind 39 Speaker setups available that have 5 6 or 739 speakers 5 Speaker setup tends to differ so this is difficult 3D A d o E I Load m as mm 51 mm 7 amenamersp mutter Mammy AiliNoiERRoRI mum Juan alumamvmelquotwavdacarmscepsquotavquot mac mm straw mqu amuimmammer mm data 2 new axuwmadmmmaz data sue mm H Elnd buffer Inch 3 sourcE alGenSDurcesU sSuurDe 1 BIGELEKIDIH Aminome return 3mg alSDurce SourcE fauna Buffet 1 39 DurcE 31ml LEIi 1 1 al uurtei on V a c 7 N t alSuurceivlSaurcE 303nm acumepusy alSuurceivlSuurcE ALivELOCITY SDurceVel a Source Butte Jeopmc Jan 1 Do an Ezra check and return 1 anagram ALJIOJRROR return ALJALSE Imgallze OpenAL apa clear the error plc aluclmcmumm alGecErrur n mad the quotav aaa39 l LuadALDBLBH Japan return a aecplscepeeValuesw Eegln the saue39se playlng aJSDurcePlayl uurce 39 lamp Alan rhme Aplp elapse u whlle wkpplcm lt elapse slaelm e mme glme elapse l elapse J 5m p elapse SDurcePu El aauesevelml al uurceivl uurcE 3031710 aauesepasl gt gt


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Janice Dongeun University of Washington

"I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.