Homework2 Flashcards

(20 cards)

1
Q

A DirectInput ________ represents a physical object that can provide input to the computer.

A

device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When sound waves reflect back from a solid object, it is know as a(n) ______

A

echo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You use a ________ to get mutliple sounds to play at once.

A

mixer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name two types of buffers used with DirectSound. (This is meant to be an easy question, so keep it simple and state the obvious.)

A

primary and secondary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give one advantage to using DirectInput over standard API calls.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

All sounds have a(n) ___________________ and a(n) ________________________.

A

amplitude and frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are devices composed of?

A

Devices are composed of a set of objects, each one defining a button, axis, POV hat, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What version of DirectX did Microsoft introduce a component called DirectMusic, which allows applications to dynamically improvise music for games?

A

DirectX 6.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Sound waves are considered to be ___________ in nature.

A

sinusoidal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the DirectInput keyboard constant for the Right-side Alt key?

A

DIK_RMENU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the DirectInput keyboard constant for the Left-side Ctrl key?

A

DIK_LCONTROL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What structure is used to setup the description of a DirectSound buffer?

A

DSBUFFERDESC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

_____________is measure in Hertz (Hz).

A

frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Explain the concept of sound, in your own words.

A

magic, wizardry, waves of energy that are caused by movement of physical objects and can be interpreted either organically or electronically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A Directinput device represents a __________ object that can give input to the computer.

A

physical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Name two ways to receive data from a device.

A

immediate and buffered

17
Q

The mouse and keyboard can have _________ which are classes that are notified when events happen.

18
Q

After successfully creating an IDirectInputDevice8 interface for a DirectInput device, what should be the first thing you do?

A

set the cooperative level

19
Q

True or False

The magnitude of sound defines how loud the sound is and is usually measured in decibels(dB).

20
Q

Direct Sound __________ are your main tools in DirectSound.