Homework2 Flashcards
(20 cards)
A DirectInput ________ represents a physical object that can provide input to the computer.
device
When sound waves reflect back from a solid object, it is know as a(n) ______
echo
You use a ________ to get mutliple sounds to play at once.
mixer
Name two types of buffers used with DirectSound. (This is meant to be an easy question, so keep it simple and state the obvious.)
primary and secondary
Give one advantage to using DirectInput over standard API calls.
Win32 was not designed for games or speed
Win32 can’t support complex joysticks
Mouse support is limited to 3 buttons and 2 axes
Keyboard supports has stuff you don’t need
Message processing is slow
All sounds have a(n) ___________________ and a(n) ________________________.
amplitude and frequency
What are devices composed of?
Devices are composed of a set of objects, each one defining a button, axis, POV hat, etc.
What version of DirectX did Microsoft introduce a component called DirectMusic, which allows applications to dynamically improvise music for games?
DirectX 6.1
Sound waves are considered to be ___________ in nature.
sinusoidal
What is the DirectInput keyboard constant for the Right-side Alt key?
DIK_RMENU
What is the DirectInput keyboard constant for the Left-side Ctrl key?
DIK_LCONTROL
What structure is used to setup the description of a DirectSound buffer?
DSBUFFERDESC
_____________is measure in Hertz (Hz).
frequency
Explain the concept of sound, in your own words.
magic, wizardry, waves of energy that are caused by movement of physical objects and can be interpreted either organically or electronically.
A Directinput device represents a __________ object that can give input to the computer.
physical
Name two ways to receive data from a device.
immediate and buffered
The mouse and keyboard can have _________ which are classes that are notified when events happen.
listeners
After successfully creating an IDirectInputDevice8 interface for a DirectInput device, what should be the first thing you do?
set the cooperative level
True or False
The magnitude of sound defines how loud the sound is and is usually measured in decibels(dB).
False
Direct Sound __________ are your main tools in DirectSound.
buffers