| Package | Description |
|---|---|
| paulscode.sound | |
| paulscode.sound.codecs | |
| paulscode.sound.libraries |
| Modifier and Type | Field and Description |
|---|---|
SoundBuffer |
Source.soundBuffer
Holds the data used by normal sources.
|
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,SoundBuffer> |
Library.bufferMap
Map containing sound file data for easy lookup by filename / identifier.
|
| Modifier and Type | Method and Description |
|---|---|
SoundBuffer |
ICodec.read()
Should read in one stream buffer worth of audio data.
|
SoundBuffer |
ICodec.readAll()
Should read in all the audio data from the stream (up to the default
"maximum file size".
|
| Modifier and Type | Method and Description |
|---|---|
void |
Source.changeSource(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
SoundBuffer soundBuffer,
float x,
float y,
float z,
int attModel,
float distOrRoll,
boolean temporary)
Changes the sources peripheral information to match the supplied parameters.
|
boolean |
Library.loadSound(SoundBuffer buffer,
String identifier)
Saves the specified sample data, under the specified identifier.
|
| Constructor and Description |
|---|
Source(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
SoundBuffer soundBuffer,
float x,
float y,
float z,
int attModel,
float distOrRoll,
boolean temporary)
Constructor: Creates a new source using the specified parameters.
|
Source(Source old,
SoundBuffer soundBuffer)
Constructor: Creates a new source matching the specified one.
|
| Modifier and Type | Method and Description |
|---|---|
SoundBuffer |
CodecJOrbis.read()
Reads in one stream buffer worth of audio data.
|
SoundBuffer |
CodecJLayerMP3.read() |
SoundBuffer |
CodecWav.read()
Reads in one stream buffer worth of audio data.
|
SoundBuffer |
CodecJOgg.read()
Reads in one stream buffer worth of audio data.
|
SoundBuffer |
CodecJOrbis.readAll()
Reads in all the audio data from the stream (up to the default
"maximum file size".
|
SoundBuffer |
CodecJLayerMP3.readAll() |
SoundBuffer |
CodecWav.readAll()
Reads in all the audio data from the stream (up to the default
"maximum file size".
|
SoundBuffer |
CodecJOgg.readAll()
Reads in all the audio data from the stream (up to the default
"maximum file size".
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ChannelJavaSound.attachBuffer(SoundBuffer buffer)
Attaches the SoundBuffer to be played back for a normal source.
|
void |
SourceJavaSound.changeSource(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
SoundBuffer soundBuffer,
float x,
float y,
float z,
int attModel,
float distOrRoll,
boolean temporary)
Changes the peripheral information about the source using the specified
parameters.
|
boolean |
LibraryJavaSound.loadSound(SoundBuffer buffer,
String identifier)
Saves the specified sample data, under the specified identifier.
|
| Constructor and Description |
|---|
SourceJavaSound(ListenerData listener,
boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
SoundBuffer soundBuffer,
float x,
float y,
float z,
int attModel,
float distOrRoll,
boolean temporary)
Constructor: Creates a new source using the specified parameters.
|
SourceJavaSound(ListenerData listener,
Source old,
SoundBuffer soundBuffer)
Constructor: Creates a new source matching the specified source.
|
Copyright © 2017. All rights reserved.