Lecture 4 Flashcards
What is the Java Sound API?
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.
Name three potential application areas of the Java Sound API.
Communication frameworks (conferencing and telephony), end-user content delivery systems (media players), and interactive application programs (games and websites).
Which packages does the Java Sound API include for digital audio and MIDI data?
javax.sound.sampled for digital audio(capture, mixing, and playback of digital (sampled) audio) and javax.sound.midi for MIDI data.
What are the three essentials required to play or capture sound using the Java Sound API?
Formatted audio data, a mixer, and a line.
Does the Java Sound API assume a specific audio hardware configuration?
No, it is designed to allow different sorts of audio components to be installed and accessed by the API.
What is sampled audio?
Sampled audio refers to digital audio data represented as successive snapshots of a sound signal.
What does formatted audio data refer to?
Sound in any of a number of standard formats, represented by an AudioFormat object.
What is a file format in the context of the Java Sound API?
A file format specifies the structure of a sound file, represented by an AudioFileFormat object.
What is a mixer in the context of the Java Sound API?
A device or software component responsible for managing audio inputs and outputs.
What is the purpose of the AudioSystem class in the Java Sound API?
It provides a central point of access for querying and manipulating audio resources such as mixers and lines.
What is a line in the Java Sound API?
A communication channel between an application and an audio device or mixer.
List the steps to play audio using a Clip in the Java Sound API.
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.
What is capturing audio in the context of the Java Sound API?
Capturing refers to obtaining a signal from outside the computer, typically recording microphone input to a sound file.
Which class in the Java Sound API is used for capturing audio data?
The TargetDataLine class
What is data format
A data format tells you how to interpret a series of bytes of “raw” sampled audio data.
It is represented by an AudioFormat object