Use of sound within games

Slides:



Advertisements
Similar presentations
CSE 380 – Computer Game Programming Audio Engineering.
Advertisements

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.
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
CHAPTER 16 Audio © 2008 Cengage Learning EMEA. LEARNING OBJECTIVES In this chapter you will learn about: – –The fundamentals of sound – –DirectX Audio.
Java Sound API Medialogy, Semester 7, 2010 Aalborg University, Aalborg David Meredith
4.3. S OUND Use of sound within games. In lecture exploration of answers to frequently asked student questions.
 Currently there is no software solution that combines video and animation in to one platform.  Every single change drag changes in all of the environments.
3.3. G AME I NPUT Handling input within games. In lecture exploration of answers to frequently asked student questions.
SCA Introduction to Multimedia
Customizable Audio Kaleidoscope Agustya Mehta, Dennis Ramdass, Tony Hwang Final Project Spring 2007.
Java Audio.
Chapter 9 Audio.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
CSCI 101 Introduction to Software Development and Design.
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
CSE 381 – Advanced Game Programming 3D Game Architecture.
NV V5.7 Product Presentation. Brand New Professional GUI  Multiple User Interface for different look and feel  Audio indicator on camera (play audio.
Audio. Why Audio Essential tool for – Interface – Narrative – Setting & Mood.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
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)
3.2. G RAPHICS I Alpha blending within games. An exploration of the use of alpha blending within games.
2.1. T HE G AME L OOP Central game update and render processes.
Audio Yu Feng CGDD Review 1. Set up 2. IOS sound – Core Audio – Short Sound – Long Sound – Control Sound – Background Sound 3.Cocos2d sound.
Guide to Programming with Python Chapter Twelve Sound, Animation, and Program Development: The Astrocrash Game.
Guide to Programming with Python Week 15 Chapter Twelve Sound, Animation, and Program Development: The Astrocrash Game.
Glencoe Introduction to Multimedia Chapter 8 Audio 1 sound effect An artificially created or enhanced sound used to achieve an effect (without speech or.
1 Sound in Java Summary: r Sound API Basics r MIDI JavaSound - Part of the UIT User Interface Toolkit.
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.
Lecture Overview Shift Register Buffering Direct Memory Access.
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.
Mixing It Up The Last Great Challenge For Game Audio Garry Taylor Audio Manager – WWS Creative Services Group Sony Computer Entertainment Europe.
9. Media (sound effects, music, video) Let’s Learn Saengthong School, June – August 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
Animations & Multimedia LESSON 9 #2.09 USING ANIMATION AND MULTIMEDIA.
Packages that we use Within ICT we primarily use Dreamweaver CS3 and Flash CS3 This is embedded in an Adobe Design Premium CS3 package (Go to Start >
Web Design, 5 th Edition 6 Multimedia and Interactivity Elements.
Chapter 15 Recording and Editing Sound
Section 9.1 Section 9.2 YOU WILL LEARN TO…
Section 9.1 Section 9.2 Identify multimedia design guidelines
Features of Authoring Tools
Objective % Explain concepts used to create digital audio.
Implementing Common Components of Video Games
15. Media (sound effects, music, video)
Creating Desktop Video and Animation
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Sound Diegetic Sound Non-Diegetic Sound
Web Programming– UFCFB Lecture 8
CHAPTER 8 Multimedia Authoring Tools
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
CSC 320 – Music Instrument Digital Interface (MIDI) and Digital Audio, Spring 2017 April 2017 Dr. Dale Parson.
Video Conferencing-introduction
Objective % Explain concepts used to create digital audio.
Multimedia: making it Work
Overview What is Multimedia? Characteristics of multimedia
CO1301: Games ncepts 2016 Lecture 2
Hands-on Introduction to Visual Basic .NET
Multimedia Authoring Tools
Technology ICT Option: Audio.
Alpha blending within games
2.2. Architectural Design I
Does Spatialized Audio Change Everything?
2.3. Architectural Design I
Central game update and render processes
Technology ICT Option: Audio.
Objective Explain concepts used to create digital audio.
Chapter 9 Audio.
Presentation transcript:

Use of sound within games

Question Clinic: FAQ In lecture exploration of answers to frequently asked student questions

Sound in Games Overview of the different uses of sound within games

Use of sound in game The use of sound within games includes: Music - establishing scene mood, e.g. uplifting, urgent, peaceful, etc. Sound effects - dependent sounds tied to in-game events, e.g. collecting power-ups, jumping, etc. Dialog – recorded/generated speech used within cut-scenes (furthering plot) or in-game (improving realism, emersion, etc.).

The importance of sound Sound plays a very important role in setting the mood for the game as well as, increasingly, how engaging the game is. For example: A pinball game without any sound (ball hits, accumulating score) will appear dull and lifeless (the player will feel more detached). In a 3D game, character movement without footfall sounds will reduce the believability/emersion (consciously, or not, the player will feel movement is not ‘right’).

Sound Management Basic principles behind managing sound playback

Output channels Sound hardware typically supports a maximum number of audio output channels (simultaneous sounds). Additionally, sound APIs may support a maximum number of output channels. The number of channels defines the maximum number of simultaneously playing sounds. Aside: “The Java Sound API provides support for the capture, processing, and rendering of audio and MIDI data. Java Sound … is a 16-bit, 32-channel audio rendering and MIDI controlled sound synthesis engine.”

Output channels (a limited resource? Example 1) Constraint: You cannot have more individual sounds playing than you have channels. Actually, 32+ channels is ample for most games… Background music People talking Water sounds Foot falls

Output channels (a limited resource? Example 2) What happens if every projectile from a ship is to make a sound when it hits something? This could be a problem…

Dealing with a large number of concurrent sounds… Question: Given a finite number of channels, how can we deal with a potentially large number of simultaneous sounds? Start 2 mins 3 mins 30 sec Finished 4 mins 1 min 6 mins 10 mins 9 mins 8 mins 7 mins 5 mins

Dealing with a large number of concurrent sounds… Approach 1: Allocate a maximum number of sound channels that can be used for a particular type of sound. Develop a manager that dynamically monitors channel usage (imposing sound type channel restriction if all channels are in use) Total 32 channels Explosions (max 6 channels) Issues: When the playback limit is reached, how are new requests handled? Are they ignored? Is playback of the longest playing sound in that class cut short? If other classes have exceeded their maximum, which one will contract? Projectile hits (max 10 channels)

Aside: Approach 1 and 2 can be successfully combined together. Dealing with a large number of concurrent sounds… Approach 2: As sound waveforms are additive, software/hardware can be used to combine separate waveforms to be then played via a single output channel. This effectively provides an unlimited number of channels, but with the additional cost of combining the individual sounds. Aside: Approach 1 and 2 can be successfully combined together.

Sound in Java Overview of sound usage in Java

Sound in Java Sound playback is achieved using the Java sound API, using: SourceDataLine – referring to a source of data for a mixer (i.e. output from a program) TargetDataLine – referring to a source of output from a mixer Clip – a loaded (not streamed) sound file. LineListener –attached to lines to monitor LineEvents (i.e. audio opened, closed, started, or stopped)

To do: Explore this Sound in Java See the following classes within the core code repository: ● SoundAsset ● SoundAssetClip ● SoundAssetAssembly

Sound in XNA Overview of sound usage in XNA

Sound in XNA (XAct) XNA audio is created using the Cross- Platform Audio Creation Tool (XACT). XACT supports WAV, AIFF, XMA formats and stero or 5.1 output XACT provides excellent audio integration features and supports streaming support and audio event notification Aside: To play MP3s (and similar formats) it will be necessary to convert them into a WAV format). This applies to XNA and Java

Sound in XNA (XAct) Audio within XACT is structured as follows: To do: Explore this Sound in XNA (XAct) Audio within XACT is structured as follows: Wave Banks – a collection of wave files Sound Banks – instructions and cues for the playback of sounds in a wave bank Cues – triggering audio playback from a sound bank. A cue can contain a sequence of ordered sounds to play, or a list from which to select a random sound to play. audioEngine = new AudioEngine(audioParameters); waveBank = new WaveBank(audioEngine, @“Assets\WaveBank.xwb"); soundBank = new SoundBank(audioEngine, @“Assets\SoundBank.xsb"); soundBank.PlayCue(Name); Cue cue = soundBank.GetCue(Name); cue.Play();

Summary Today we explored: Overview of the use of sound within games and how sounds can be managed Overview of Java/XNA sound classes To do: Think about the role of sound in your game (how important do you want it to be?) Continue developing visual/aural design of game Continue writing code to display graphics or play sound