| Package | Description |
|---|---|
| paulscode.sound | |
| paulscode.sound.libraries |
| Modifier and Type | Field and Description |
|---|---|
FilenameURL |
Source.filenameURL
The audio file which this source should play.
|
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<FilenameURL> |
Source.soundSequenceQueue
The list of files to stream when the current stream finishes.
|
| Modifier and Type | Method and Description |
|---|---|
FilenameURL |
MidiChannel.getFilenameURL()
Returns the MIDI file being played.
|
| 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.
|
void |
MidiChannel.fadeOut(FilenameURL filenameURL,
long milis)
Fades out the volume of whatever sequence is currently playing, then
begins playing the specified MIDI file at the previously assigned
volume level.
|
void |
Source.fadeOut(FilenameURL filenameURL,
long milis)
Fades out the volume of whatever this source is currently playing, then
begins playing the specified filename at the source's previously assigned
volume level.
|
void |
Library.fadeOut(String sourcename,
FilenameURL filenameURL,
long milis)
Fades out the volume of whatever the specified source is currently playing,
then begins playing the specified file at the source's previously
assigned volume level.
|
void |
MidiChannel.fadeOutIn(FilenameURL filenameURL,
long milisOut,
long milisIn)
Fades out the volume of whatever sequence is currently playing, then
fades the volume back in playing the specified MIDI file.
|
void |
Source.fadeOutIn(FilenameURL filenameURL,
long milisOut,
long milisIn)
Fades out the volume of whatever this source is currently playing, then
fades the volume back in playing the specified file.
|
void |
Library.fadeOutIn(String sourcename,
FilenameURL filenameURL,
long milisOut,
long milisIn)
Fades out the volume of whatever the specified source is currently playing,
then fades the volume back in playing the specified file.
|
void |
Library.loadMidi(boolean toLoop,
String sourcename,
FilenameURL filenameURL)
Loads the specified MIDI file, and saves the source information about it.
|
boolean |
Library.loadSound(FilenameURL filenameURL)
Pre-loads a sound into memory.
|
void |
Library.newSource(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
float posX,
float posY,
float posZ,
int attModel,
float distOrRoll)
Creates a new source using the specified information.
|
void |
MidiChannel.queueSound(FilenameURL filenameURL)
Queues up the next MIDI sequence to play when the previous sequence ends.
|
void |
Source.queueSound(FilenameURL filenameURL)
If this is a streaming source, queues up the next sound to play when
the previous stream ends.
|
void |
Library.queueSound(String sourcename,
FilenameURL filenameURL)
If the specified source is a streaming source or MIDI source, this method
queues up the next sound to play when the previous playback ends.
|
void |
Library.quickPlay(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
float posX,
float posY,
float posZ,
int attModel,
float distOrRoll,
boolean tmp)
Creates and immediately plays a new source that will be removed when it
finishes playing.
|
void |
MidiChannel.setFilenameURL(FilenameURL value)
Defines which MIDI file to play.
|
void |
MidiChannel.switchSource(boolean toLoop,
String sourcename,
FilenameURL filenameURL)
Changes the basic information about the MIDI source.
|
| Constructor and Description |
|---|
MidiChannel(boolean toLoop,
String sourcename,
FilenameURL midiFilenameURL)
Constructor: Defines the basic source information.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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(FilenameURL filenameURL)
Pre-loads a sound into memory.
|
void |
LibraryJavaSound.newSource(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
float x,
float y,
float z,
int attModel,
float distOrRoll)
Creates a new source and places it into the source map.
|
void |
LibraryJavaSound.quickPlay(boolean priority,
boolean toStream,
boolean toLoop,
String sourcename,
FilenameURL filenameURL,
float x,
float y,
float z,
int attModel,
float distOrRoll,
boolean temporary)
Creates and immediately plays a new source.
|
| 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.
|
Copyright © 2017. All rights reserved.