| Modifier and Type | Field and Description |
|---|---|
| private static AL | |
| private static ALC | |
| private static Listener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Context | Returns: The new Sound3D context.The device the Context is being created for. device)Creates a new Sound3D Context for a specified device. |
| public static Buffer[] | Returns: an array of (initially enpty) Sound3D buffers.The number of Sound3D buffers to generate. numBuffers)Generate an array of Sound3D buffers. |
| public static Source | Returns: the newly generated Source.The buffer to generate the source from. buff)Generate a Sound3D source from an initialized Buffer. |
| public static Source[] | Returns: an array of uninitialized sources.the number of Sound3D sources to generate. numSources)Generates a set of uninitialized Source3D sources |
| public static Listener | Returns: The listener object.Get the listener object associated with this Sound3D environment. |
| public static void | |
| public static Buffer | Returns: a new Sound3D buffer containing the audio data from the specified file.the name of the file to load. filename)Loads a Sound3D buffer with the specified audio file. |
| public static Buffer | Returns: a new Sound3D buffer containing the audio data from the passed stream.contains the stream associated with the audio file. stream)Loads a Sound3D buffer with the specified audio file. |
| public static Source | Returns: a new Sound3D Source containing the audio data from the specified file.the name of the file to load. filename)Loads a Sound3D Source with the specified audio file. |
| public static Source | Returns: a new Sound3D Source containing the audio data from the passed stream.contains the stream associated with the audio file. stream)Loads a Sound3D Source with the specified audio stream. |
| public static void | makeContextCurrent(final Context
the context to make current. context)Makes the specified context the current context. |
| public static Device | Returns: The device described by the specifed name.The specified device name, On windows this will be
DirectSound3D. We will be automating device discovery in upcoming versions
of this class. deviceName)Opens the specifified audio device. |
| al | back to summary |
|---|---|
| private static AL al | |
| alc | back to summary |
|---|---|
| private static ALC alc | |
| listener | back to summary |
|---|---|
| private static Listener listener | |
| AudioSystem3D | back to summary |
|---|---|
| public AudioSystem3D() | |
| createContext | back to summary |
|---|---|
| public static Context createContext(final Device device) Creates a new Sound3D Context for a specified device. | |
| generateBuffers | back to summary |
|---|---|
| public static Buffer[] generateBuffers(final int numBuffers) Generate an array of Sound3D buffers.
| |
| generateSource | back to summary |
|---|---|
| public static Source generateSource(final Buffer buff) Generate a Sound3D source from an initialized Buffer. | |
| generateSources | back to summary |
|---|---|
| public static Source[] generateSources(final int numSources) Generates a set of uninitialized Source3D sources
| |
| getListener | back to summary |
|---|---|
| public static Listener getListener() Get the listener object associated with this Sound3D environment.
| |
| init | back to summary |
|---|---|
| public static void init() throws ALException Iniitalize the Sound3D environment. This must be called before other methods in the class can be used. | |
| loadBuffer | back to summary |
|---|---|
| public static Buffer loadBuffer(final String filename) throws IOException, UnsupportedAudioFileException Loads a Sound3D buffer with the specified audio file.
| |
| loadBuffer | back to summary |
|---|---|
| public static Buffer loadBuffer(InputStream stream) throws IOException, UnsupportedAudioFileException Loads a Sound3D buffer with the specified audio file.
| |
| loadSource | back to summary |
|---|---|
| public static Source loadSource(final String filename) throws IOException, UnsupportedAudioFileException Loads a Sound3D Source with the specified audio file. This is functionally equivalent to generateSource(loadBuffer(fileName));
| |
| loadSource | back to summary |
|---|---|
| public static Source loadSource(final InputStream stream) throws IOException, UnsupportedAudioFileException Loads a Sound3D Source with the specified audio stream. This is functionally equivalent to generateSource(loadBuffer(stream));
| |
| makeContextCurrent | back to summary |
|---|---|
| public static void makeContextCurrent(final Context context) Makes the specified context the current context.
| |
| openDevice | back to summary |
|---|---|
| public static Device openDevice(final String deviceName) Opens the specifified audio device. | |