4.3. S OUND Use of sound within games. In lecture exploration of answers to frequently asked student questions.

Slides:



Advertisements
Similar presentations
MUSC1010 – WEEK 5 MIDI sequencing in Pro Tools. Cycle Record including MIDI Merge Follow the steps under “STARTING WITH MIDI & SOFT-SYNTHS” in last week’s.
Advertisements

Using Audacity Audacity is an audio-editing application available from and can be used with most PC operating systems.
CSE 380 – Computer Game Programming Audio Engineering.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
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 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.
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.
Macromedia Director 8 Intermediate Level Course. Ink Masks Using the Ink Mask feature will allow you to create parts of a bitmap cast member to become.
Java Sound API Medialogy, Semester 7, 2010 Aalborg University, Aalborg David Meredith
 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.02C Multimedia Fair Uses Guidelines and Elements
3.1. G RAPHICS I The use of images within games. Reflections and advice on the games proposed in the Week 2 Hand-in.
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.
Multimedia Authoring Tools Lecture 13
Chapter Objectives Explain Web page multimedia issues
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
CSCI 101 Introduction to Software Development and Design.
Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering.
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.
Patent Liability Analysis Team 14: Faris Issa Sean King David Record Prateek Singhal.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Laurent Noel.
Let’s Start! Pages 136 to 140 March 18, Facts about GameFactory2(TGF2) Is a game engine developed by Clickteam. Uses Object-oriented programming.
Audio. Why Audio Essential tool for – Interface – Narrative – Setting & Mood.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Mixing It Up The Last Great Challenge For Game Audio Garry Taylor Audio/Video Manager Sony Computer Entertainment Europe.
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)
CHAPTER TEN AUTHORING.
1 Begin the editing process by selecting method of importing video Use the Movie Task Menu to import, edit and save video Follow this menu to complete.
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.
Introduction to Interactive Media Interactive Media Tools: Authoring Applications.
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.
Stencyl Visual Programming Dr. Gary Liu. Sections: 1: Game Development Concepts 2: Stencyl and Game Mechanics 3: Stencyl Story and Aesthetics 4: stencyl.
GCSE Computing: A451 Computer Systems & Programming Topic 3 Software System Software (1) The Operating System.
27656 (v1) Demonstrate and apply introductory knowledge of music technology equipment and techniques MUSIC Level 1Credits 4.
Mixing It Up The Last Great Challenge For Game Audio Garry Taylor Audio Manager – WWS Creative Services Group Sony Computer Entertainment Europe.
 The same story, information, etc can be represented in different media  Text, images, sound, moving pictures  All media can be represented digitally.
System Software (1) The Operating System
9. Media (sound effects, music, video) Let’s Learn Saengthong School, June – August 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
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 >
Objective % Explain concepts used to create digital audio.
15. Media (sound effects, music, video)
Objective % Explain concepts used to create digital audio.
Multimedia: making it Work
Alpha blending within games
Does Spatialized Audio Change Everything?
Use of sound within games
Chapter 9 Audio.
Presentation transcript:

4.3. S OUND Use of sound within games

In lecture exploration of answers to frequently asked student questions

Overview of the different uses of sound within games

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.).

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’).

Basic principles behind managing sound playback

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.”

Background music Foot falls Water sounds Constraint: You cannot have more individual sounds playing than you have channels. People talking Actually, 32+ channels is ample for most games…

What happens if every projectile from a ship is to make a sound when it hits something? This could be a problem…

Question: Given a finite number of channels, how can we deal with a potentially large number of simultaneous sounds? Start 10 mins9 mins8 mins7 mins6 mins5 mins4 mins3 mins2 mins 1 min 30 secFinished

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) Explosions (max 6 channels) Projectile hits (max 10 channels) Total 32 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?

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.

Overview of sound usage 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)

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

Overview of sound usage in XNA

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

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 soundBank = new SoundBank soundBank. PlayCue (Name); Cue cue = soundBank. GetCue (Name); cue. Play (); To do: Explore this

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 Today we explored: Overview of the use of sound within games and how sounds can be managed Overview of Java/XNA sound classes