public class

AudioDevice

extends Object
java.lang.Object
   ↳ sun.audio.AudioDevice

Class Overview

This class provides an interface to the Headspace Audio engine through the Java Sound API. This class emulates systems with multiple audio channels, mixing multiple streams for the workstation's single-channel device.

Summary

Fields
public static final AudioDevice device The default audio player.
Public Methods
synchronized void close()
Close the device (done automatically)
synchronized void closeChannel(InputStream in)
Close an audio channel.
synchronized void closeStreams()
Close streams
synchronized void open()
Open the device (done automatically)
synchronized void openChannel(InputStream in)
Open an audio channel.
int openChannels()
Number of channels currently open.
void play()
Play open audio stream(s)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final AudioDevice device

The default audio player. This audio player is initialized automatically.

Public Methods

public synchronized void close ()

Close the device (done automatically)

public synchronized void closeChannel (InputStream in)

Close an audio channel.

public synchronized void closeStreams ()

Close streams

public synchronized void open ()

Open the device (done automatically)

public synchronized void openChannel (InputStream in)

Open an audio channel.

public int openChannels ()

Number of channels currently open.

public void play ()

Play open audio stream(s)