GAM666 – Introduction To Game Programming DirectX Audio, first appearing in DirectX 8, is the union of ● DirectSound – low level control of the audio hardware.

Slides:



Advertisements
Similar presentations
Introduction to Digital Audio
Advertisements

Audio Compression ADPCM ATRAC (Minidisk) MPEG Audio –3 layers referred to as layers I, II, and III –The third layer is mp3.
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 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.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
SimPhonics, Inc. FXDirect Audio System for V+. SimPhonics, Inc. What Is FXDirect ® Audio Subsystem Add-on to V+ –Currently built-in Consists of Objects.
CMPS1371 Introduction to Computing for Engineers PROCESSING SOUNDS.
Final Year Project Progress January 2007 By Daire O’Neill 4EE.
I Power Higher Computing Multimedia technology Audio.
CHAPTER 16 Audio © 2008 Cengage Learning EMEA. LEARNING OBJECTIVES In this chapter you will learn about: – –The fundamentals of sound – –DirectX Audio.
Tricks and Techniques for Sound Effect Design By Bobby Prince 97/sound_effect.htm.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
Digital Audio.
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.
Implementing 3D Digital Sound In “Virtual Table Tennis” By Alexander Stevenson.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Representing Sound in a computer Analogue  Analogue sound is produced by being picked up by a transducer (microphone) and converted in an electrical current.
Windows audio architecture Win MM Application DirectSound Application SysAudio.SYS Kmixer.SYS WinMM.DLLDSound.DLL Device Drive Container USB Device Driver.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
Thursday 27 th September. Periods Music Technology A2.
School of Informatics CG087 Time-based Multimedia Assets Sampling & SequencingDr Paul Vickers1 Sampling & Sequencing Combining MIDI and audio.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
A Tutorial to DirectShow Ruigang Yang August, 2001.
CIS 102Introduction to Hardware and Software Chapter 2 Input and Output part 3 output devices.
Sound and audio. Table of Content 1.Introduction 2.Properties of sound 3.Characteristics of digital sound 4.Calculate audio data size 5.Benefits of using.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
Sound on the Web. Using Sound on a Web Site Conveying information  pronounce a word or describe a product Set a mood  music to match the web page scene.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Tutorial 7 Working with Multimedia
Tutorial 7 Designing a Multimedia Web Site
Games Development Practices Sound Effects & OpenAL CO2301 Games Development 1 Week 15.
Introduction to SOUND.
Sound element Week - 11.
Digital Sound Actual representation of sound Stored in form of thousands of individual numbers (called samples) Not device dependent Stored in bits.
1© Manhattan Press (H.K.) Ltd Radar speed trap.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
Sound DirectMusic & DirectSound. DirectShow Video Formats DirectShow is an open architecture, it can support any format as long as there are filters to.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
Analogue & Digital. Analogue Sound Storage Devices.
Speech Processing and Recognition © Florida Institute of Technology Access audio data in real time and apply to speech recognition Final Exam Project By.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
Chapter 13 DirectSound 로 잡음 만들기. 2 History of Sound Programming Sound programming always gets put off until the end DOS –Third party sound libraries:
Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.
Sound and Hearing Properties of Sound Waves, Ultrasound, The Doppler Effect.
Sound and Digital Sound v © Allan C. Milne Abertay University.
GAM666 – Introduction To Game Programming ● DirectX is implemented as a collection of COM objects ● To use a DirectX program, the user must have the correct.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
Digital Audio II. Volume Scaling The volume of a digitized audio source may be increased or decreased by multiplying each sample value by an appropriate.
GAM666 – Introduction To Game Programming ● Programmer's perspective of Game Industry ● Introduction to Windows Programming ● 2D animation using DirectX.
Sound. Sound Capture We capture, or record, sound by a process called sampling: “measuring” the sound some number of times per second. Sampling rate is.
U73 PMD2: Understand methods and principles of sound design and production Date due: Monday 22/04/13.
Session 18 The physics of sound and the manipulation of digital sounds.
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.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
Bryant Tober. Problem Description  View the sound wave produced from a wav file  Apply different modulations to the wave file  Hear the effect of the.
XP Practical PC, 3e Chapter 14 1 Recording and Editing Sound.
4.1 Different Audio Properties
Multimedia Systems and Applications
Analogue & Digital.
EFC Media Center Training
Representing Sound 2.6 – Data Representation.
Games Development Practices Sound Effects
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
Presentation transcript:

GAM666 – Introduction To Game Programming DirectX Audio, first appearing in DirectX 8, is the union of ● DirectSound – low level control of the audio hardware ● DirectMusic – high level management of sounds Sample6 uses DirectMusic for almost everything, except to change the pitch of the “engine” noise, which DirectMusic doesn't let us control Sample7 adds 3D sounds, which also require DirectSound control DirectX Audio

GAM666 – Introduction To Game Programming ● Digital audio deals with digital samples of sound waves. Sound cards contain Digital/Analog Converters (DACs) to sample and playback sounds (which can be stereo or mono) ● Sample rate is the frequency at which samples are taken, and should be twice the highest frequency you want to hear (22kHz is common, but 44kHz is better, since good ears can hear to 20kHz) ● Sample size is the number of bits reserved for each sample (16 bits is common, but 24 or 32 is better giving greater dynamic range) Digital Audio Basics

GAM666 – Introduction To Game Programming Unlike Direct3D, which provides dedicated functions for creating the necessary COM object, DirectX Audio uses standard COM methods. This means: ● Calling CoInitialize() once at the beginning, before any COM objects are instantiated ● Calling CoUninitialize() at the end of the program after all the COM objects are Released ● Using CoCreateInstance() to create many of the COM objects, specifying both the Class ID and Interface ID for the object DirectX Audio

GAM666 – Introduction To Game Programming DirectMusic objects: ● IDirectMusicPerformance8 – directs the entire combination of sounds that will play ● IDirectMusicAudioPath8 – directs a set of sounds that you want to control together ● IDirectMusicSegment8 – represents a specific sound effect to be played on one of the audio paths of the performance ● IDirectMusicLoader8 – used to load a sound effect into a segment DirectX Audio

GAM666 – Introduction To Game Programming ● You can play a sound effect by using the Performance function PlaySegment() or PlaySegmentEx(), controlling that sound by manipulating the Audiopath for that segment ● If the Audiopath doesn't give you enough control, you may need to get its low level sound buffer (using the Audiopath GetObjectInPath() function), which is an instance of the DirectSound interface: IDirectSoundBuffer8 ● Sample6 uses the sound buffer to change the playback frequency, effectively changing pitch DirectX Audio

GAM666 – Introduction To Game Programming ● Before playing a sound effect, it must be sent to the sound card, using the Segment function Download() - once downloaded, it can be played over and over again ● The Performance functions Stop() and StopEx() are used to stop playback of one or all playing segments ● All segments must be stopped before Releasing the COM objects, which are sensitive to the order of destruction DirectX Audio

GAM666 – Introduction To Game Programming DirectX Audio is capable of managing sounds in 3D space, and even compensating for such effects as the Doppler effect (where the perceived pitch varies depending on the speed difference between the sound and the listener) – you will need: ● An IDirectSound3DListener8 instance, representing the user's position in space ● An IDirectSound3DBuffer8 instance for each segment you want to locate in 3D space ● Both the 3D sound buffer and the listener are used to calculate the volume and position of what you hear 3D Audio