Lecture 4 Flashcards

1
Q

What is the Java Sound API?

A

The Java Sound API is a low-level API for effecting and controlling the input and output of sound media, including both audio and MIDI data.

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

Name three potential application areas of the Java Sound API.

A

Communication frameworks (conferencing and telephony), end-user content delivery systems (media players), and interactive application programs (games and websites).

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

Which packages does the Java Sound API include for digital audio and MIDI data?

A

javax.sound.sampled for digital audio(capture, mixing, and playback of digital (sampled) audio) and javax.sound.midi for MIDI data.

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

What are the three essentials required to play or capture sound using the Java Sound API?

A

Formatted audio data, a mixer, and a line.

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

Does the Java Sound API assume a specific audio hardware configuration?

A

No, it is designed to allow different sorts of audio components to be installed and accessed by the API.

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

What is sampled audio?

A

Sampled audio refers to digital audio data represented as successive snapshots of a sound signal.

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

What does formatted audio data refer to?

A

Sound in any of a number of standard formats, represented by an AudioFormat object.

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

What is a file format in the context of the Java Sound API?

A

A file format specifies the structure of a sound file, represented by an AudioFileFormat object.

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

What is a mixer in the context of the Java Sound API?

A

A device or software component responsible for managing audio inputs and outputs.

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

What is the purpose of the AudioSystem class in the Java Sound API?

A

It provides a central point of access for querying and manipulating audio resources such as mixers and lines.

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

What is a line in the Java Sound API?

A

A communication channel between an application and an audio device or mixer.

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

List the steps to play audio using a Clip in the Java Sound API.

A

Load the audio file, create a Clip object, open the audio stream, open the clip, start playing, optionally loop playback, and close the clip when done.

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

What is capturing audio in the context of the Java Sound API?

A

Capturing refers to obtaining a signal from outside the computer, typically recording microphone input to a sound file.

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

Which class in the Java Sound API is used for capturing audio data?

A

The TargetDataLine class

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

What is data format

A

A data format tells you how to interpret a series of bytes of “raw” sampled audio data.
It is represented by an AudioFormat object

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