|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.audio.Sequence
public abstract class Sequence
sequences, midi, xmf, rmf, sms.
| Field Summary | |
|---|---|
static byte |
BANK
|
static byte |
CONTROL_CHANGE
|
static byte |
DATA_LSB
|
static byte |
DATA_MSB
|
static byte |
DEFAULT_BANK
|
static byte |
DEFAULT_PROGRAM
|
static byte |
EXPRESSION
|
static byte |
LED_BRIGHTNESS
|
static byte |
LED_HUE
|
static byte |
LED_PURITY
|
static byte |
MAX_BANKS
|
static int |
MAX_INSTRUMENTS
|
static byte |
MAX_MIDI_CHANNELS
MAX/MIN |
static byte |
MAX_MIDI_TRACKS
|
static byte |
MAX_MIDI_VOLUME
|
static byte |
MODULATION
|
static byte |
NOTE_OFF
|
static byte |
NOTE_ON
MIDI commands to send to ParseMidiData |
static byte |
NPRN_BUZZER_LSB
Danger specific NRPN's |
static byte |
NPRN_BUZZER_MSB
|
static byte |
NPRN_FLASHER_LSB
|
static byte |
NPRN_FLASHER_MSB
|
static byte |
NRPN_LSB
Controller values |
static byte |
NRPN_MSB
|
static byte |
PERCUSSION_CHANNEL
|
static byte |
PITCH_BEND
|
static byte |
PROGRAM_CHANGE
|
static byte |
RPN_LSB
|
static byte |
RPN_MSB
|
static byte |
SUSTAIN
|
static byte |
VIBRATE
Danger specific controls |
static byte |
VIBRATE_70MS
|
static byte |
VOLUME
|
| Fields inherited from interface danger.media.PlayableMedia |
|---|
DEFAULT_PRIORITY, PRIORITY_1, PRIORITY_2, PRIORITY_3, PRIORITY_4, PRIORITY_5 |
| Constructor Summary | |
|---|---|
Sequence()
|
|
| Method Summary | |
|---|---|
void |
allNotesOff()
kill all voices |
abstract void |
allNotesOff(int time)
kill voices with release |
abstract void |
allowChannelTranspose(byte channel,
boolean allowPitch)
If allowPitch is false, then "SetTranspose" will have no effect on passed channel (0 to 15) |
abstract boolean |
areMidiEventsPending()
returns true if there are midi events pending |
void |
controlChange(byte channel,
byte controlNumber,
byte controlValue)
|
abstract void |
controlChange(byte channel,
byte controlNumber,
byte controlValue,
int time)
|
void |
destroy()
will free memory associated with this object |
abstract boolean |
doesChannelAllowTranspose(byte channel)
Return if the passed channel will allow pitch offset |
abstract void |
fadeFromToInTime(int sourceVolume,
int destVolume,
int timeInMiliseconds)
fade from source volume, to dest volume in time miliseconds. |
abstract byte |
getBank(byte channel)
Get the current Midi bank number (LSB for GM2 bank number) |
abstract void |
getChannelMuteStatus(boolean[] pChannels)
Get all channels mute status at once. |
abstract void |
getChannelSoloStatus(boolean[] pChannels)
Get all channels mute status at once. |
abstract byte |
getControlValue(byte channel,
byte controller)
Get the current Midi controler value. |
int |
getCurrentLoopNumber()
Gets the number of times the looped media has looped back to the loop start. |
abstract byte[] |
getData()
return Midi/SMS sequence data once loaded |
abstract int |
getLoopCount()
Gets the loop count; which is the total number of times an object is played. |
abstract int |
getLoops()
Deprecated. - use getLoopCount() instead. |
int |
getMarkerCount()
Gets the number of markers contained by the currently loaded media. |
int |
getMarkerID(int index)
Return the integer ID associated with the marker at the given index. |
String |
getMarkerName(int index)
Return the name associated with the marker at the given index. |
int |
getMarkerPosition(int index)
Return the position in milliseconds of the marker at the given index. |
abstract int |
getMasterTempo()
get song master tempo |
int |
getMediaType()
Returns file type of media. |
int |
getMicrosecondLength()
Deprecated. - use getMillisecondLength() instead. |
int |
getMicrosecondPosition()
Deprecated. - use getMillisecondPosition() instead. |
abstract int |
getMillisecondLength()
get length in milliseconds of length of song |
abstract int |
getMillisecondPosition()
get the current playback position of a song in milliseconds |
abstract byte |
getPitchBendLSB(byte channel)
|
abstract byte |
getPitchBendMSB(byte channel)
|
int |
getPlaybackRate()
Get the playback rate of the media. 100 is default rate. |
int |
getPlaybackRate(int rate)
Get the playback rate |
abstract int |
getPriority()
Get synth priority level. |
abstract byte |
getProgram(byte channel)
Get the current Midi program |
abstract void |
getSoloTrackStatus(boolean[] pTracks)
Get all track mute status at once. |
int |
getStereoPosition()
Returns current stereo position. |
abstract String |
getTitle()
return title, if available of Sequence |
abstract void |
getTrackMuteStatus(boolean[] pTracks)
Get all track mute status at once. |
int |
getTranspose()
Return tuning in semitones. |
int |
getTuning()
Return tuning in cents (1200 is down an octave, -1200 is up an octave) This interacts with PlayableAudio.setTranspose(int) and PlayableAudio.getTranspose() |
abstract int |
getType()
return type of sequence. |
int |
getUniqueID()
return runtime ID. |
abstract int |
getVolume()
Returns current volume in percent. |
int |
getVolumeClass()
Get the current volume class. |
abstract boolean |
isDone()
poll to see if song is done |
abstract boolean |
isInstrumentLoaded(byte patch,
byte bankLSB,
byte bankMSB)
Determine if a GM2 instrument is loaded via patch number and bank LSB/MSB OS 3.0 |
abstract boolean |
isInstrumentLoaded(int instrument)
Deprecated. - use version which takes patch plus bank lsb and msb |
abstract boolean |
isLoaded()
is song loaded? |
boolean |
isLoopingEnabled()
Return whether looping is enabled (set by a call to PlayableMedia.setLoopingEnabled(boolean)). |
boolean |
isMuted()
Return true if the audio is muted |
abstract boolean |
isPaused()
Returns true if paused |
boolean |
isPlaying()
Returns true if object is playing. |
static Sequence |
load(byte[] data)
Given an array of bytes, try and load a Sequence (Can be a Midi, RMF, or XMF file) Will return null if data is invalid. |
static Sequence |
load(byte[] data,
boolean autoDelete)
Given an array of bytes, try and load a Sequence (Can be a Midi, RMF, or XMF file) Will return null if data is invalid. |
static Sequence |
load(File f)
Given a sequence file, try and load it (Can be a Midi, RMF, or XMF file) Will return null if file data is invalid. |
static Sequence |
load(File f,
boolean autoDelete)
Given a sequence file, try and load it (Can be a Midi, RMF, or XMF file) Will return null if file data is invalid. |
abstract boolean |
loadFromData(byte[] data)
load data and return true if ok |
boolean |
loadFromFile(byte[] data)
Given a block of data, figure out if it is a sequence file format, and load it if so. |
boolean |
loadFromMidi(byte[] data)
Deprecated. - use loadFromFile(byte[]) instead |
boolean |
loadFromMIDPToneSeq(byte[] data)
|
boolean |
loadFromResource(int id)
Pass an ID, and read data from the application resource file or the system resource file. |
boolean |
loadFromResource(int id,
Application app)
|
boolean |
loadFromRingtone(byte[] data)
Deprecated. - use loadFromFile(byte[]) instead |
boolean |
loadFromRingtone(String ringtone)
Load a Nokia SMS formatted String that is encoded as ascii hex into a Sequence. |
boolean |
loadFromRmf(byte[] data)
Deprecated. - use loadFromFile(byte[]) instead |
abstract boolean |
loadInstrument(byte patch,
byte bankLSB,
byte bankMSB)
Load a GM2 instrument via patch number and bank LSB/MSB OS 3.0 |
abstract boolean |
loadInstrument(int instrument)
Deprecated. - use version which takes patch plus bank lsb and msb |
abstract void |
muteChannel(byte channel)
Mute and unmute channels (0 to 15) |
abstract void |
muteTrack(byte track)
Mute and unmute tracks (0 to 64) |
void |
noteOff(byte channel,
byte note,
byte velocity)
|
abstract void |
noteOff(byte channel,
byte note,
byte velocity,
int time)
If you pass AudioManager.NOW for time the current time will be passed The channel variable is 0 to 15. |
void |
noteOn(byte channel,
byte note,
byte velocity)
|
abstract void |
noteOn(byte channel,
byte note,
byte velocity,
int time)
|
void |
noteOnWithLoad(byte channel,
byte note,
byte velocity)
|
abstract void |
noteOnWithLoad(byte channel,
byte note,
byte velocity,
int time)
note on that checks to see if an instrument needs to be loaded. |
void |
NRPN(byte channel,
byte lsb,
byte msb,
byte value)
Non registered parameters |
void |
NRPN(byte channel,
byte lsb,
byte msb,
byte value,
int time)
Non registered parameters |
void |
parseMidiData(byte commandByte,
byte data1Byte,
byte data2Byte,
byte data3Byte)
|
abstract void |
parseMidiData(byte commandByte,
byte data1Byte,
byte data2Byte,
byte data3Byte,
int time)
given a midi stream, parse it out to the various midi functions for example: 0x92 0x50 0x7F 0x00 comandByte data1Byte data2Byte data3Byte Note 80 on with a velocity of 127 on channel 2 |
abstract void |
pause()
pause, resume, test playback of song playback |
void |
pitchBend(byte channel,
byte lsb,
byte msb)
|
abstract void |
pitchBend(byte channel,
byte lsb,
byte msb,
int time)
|
void |
play()
Given a sequence file, start it playing, and auto delete it when done playing. |
static Sequence |
play(byte[] data)
Given an array of bytes load a sequence file, start it playing, and auto delete it when done playing. |
static Sequence |
play(byte[] data,
boolean autoDelete)
Given an array of bytes load a sequence file, start it playing, and auto delete it when done playing if autoDelete is true. |
static Sequence |
play(File f)
Given a sequence file, start it playing, and auto delete it when done playing. |
static Sequence |
play(File f,
boolean autoDelete)
Given a sequence file, start it playing, and auto delete it when done playing if requested. |
static Sequence |
play(int resourceID)
Method to load a sequence file from a resource, start it playing, and auto delete it when done playing. |
static Sequence |
play(int resourceID,
boolean autoDelete)
Method to load a sequence file from a resource, start it playing, and auto delete it when done playing if requested. |
void |
programBankChange(byte channel,
byte programNumber,
byte bankNumber)
Deprecated. - use version which takes program plus bank lsb and msb. |
abstract void |
programBankChange(byte channel,
byte programNumber,
byte bankLSB,
byte bankMSB,
int time)
Select GM2 MIDI program for the specified channel using program number and bank LSB/MSB OS 3.0 |
abstract void |
programBankChange(byte channel,
byte programNumber,
byte bankNumber,
int time)
Deprecated. - use version which takes program plus bank lsb and msb. |
void |
programChange(byte channel,
byte programNumber)
|
abstract void |
programChange(byte channel,
byte programNumber,
int time)
Select MIDI program for the specified channel using program number. |
abstract void |
resume()
Will resume object if paused. |
void |
RPN(byte channel,
byte lsb,
byte msb,
byte value)
GM Registered parameters |
void |
RPN(byte channel,
byte lsb,
byte msb,
byte value,
int time)
GM Registered parameters |
abstract void |
setBuzzFlash(boolean buzzOn,
boolean flashOn)
Set auto generate buzz/flash on or off |
abstract void |
setBuzzFlashEnable(boolean buzzOn,
boolean flashOn)
Set buzz/flash enable or off. |
void |
setDoneCallbackEvent(Event done)
Set the event that is called when this media is finished. |
void |
setDoneCallbackEvent(Event done,
boolean doEventOnce)
Set the event that is called when this media is finished. |
abstract void |
setLoopCount(int loopCount)
Sets the loop count; which is the total number of times an object is played. |
void |
setLoopingEnabled(boolean on)
Enable looping. |
abstract void |
setLoops(int loops)
Deprecated. - use setLoopCount(int) instead. |
abstract void |
setMasterTempo(int tempoFactor)
Set song master tempo. |
void |
setMicrosecondPosition(int ticks)
Deprecated. - use setMillisecondPosition(int) instead. |
abstract void |
setMillisecondPosition(int pos)
set the current playback position of song in milliseconds |
void |
setMute(boolean mute)
Mute or unmute the audio. |
void |
setPlaybackRate(int rate)
Set the playback rate |
void |
setPositionCallbackEvent(Event event,
int position)
Set an event that is called when this media reaches the given position during playback. |
void |
setPositionToMarker(int markerID)
Set the media playback position to the position associated with the marker with the given markerID |
abstract void |
setPriority(int priority)
Set synth priority level. |
abstract void |
setRouteBus(int routeBus)
|
void |
setStereoPosition(int position)
Set the stereo position of sound. |
void |
setStoppedCallbackEvent(Event stopped)
Set the event that is called when this media is stopped by stop(). |
void |
setStoppedCallbackEvent(Event stopped,
boolean doEventOnce)
Set the event that is called when this media is stopped by stop(). |
void |
setTranspose(int semitones)
Set tuning in semitones. |
void |
setTuning(int cents)
Set tuning in cents (1200 is down an octave, -1200 is up an octave) This interacts with PlayableAudio.setTranspose(int) and PlayableAudio.getTranspose() |
abstract void |
setVolume(int volume)
set song volume. |
void |
setVolumeClass(int volumeClass)
Set the volume class. |
abstract void |
soloChannel(byte channel)
|
abstract void |
soloTrack(byte track)
|
void |
start()
Start sequence |
void |
start(int filter)
Start a sequence, but filter content types from ToneFilter.* If you pass in ToneFilter.BUZZER or ToneFilter.FLASHER and there are no specific controller events in the midi file, then the flash and buzz will be synthetically generated by looking at the percussion track first, then the first channel of data. |
void |
start(int filter,
int volume)
Start a sequence, but filter content types from ToneFilter.* and set a volume level prior to starting |
boolean |
startAtOffset(int startOffset)
|
boolean |
startDefault()
Start Sequence with defaults Returns true if started NOTE: This is implemented in Playable OS 2.3 |
void |
startPlaying()
Start media playback with default attributes. |
void |
startPlaying(int attributes)
Start media playback with specified attributes. |
boolean |
startWithFilter(int filter)
Start Sequence with a filter Returns true if started NOTE: This is implemented in Playable OS 2.3 |
void |
stop()
Will stop the object and reset to begining |
void |
stopPlaying()
Stop media playback |
abstract int |
translateBankProgramToInstrument(byte bank,
byte program,
byte channel,
byte note)
Deprecated. - only used with old instrument number methods. |
abstract boolean |
unloadInstrument(byte patch,
byte bankLSB,
byte bankMSB)
Unload a GM2 instrument via patch number and bank LSB/MSB OS 3.0 |
abstract boolean |
unloadInstrument(int instrument)
Deprecated. - use version which takes patch plus bank lsb and msb |
abstract void |
unmuteChannel(byte channel)
|
abstract void |
unmuteTrack(byte track)
|
abstract void |
unSoloChannel(byte channel)
|
abstract void |
unSoloTrack(byte track)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte NOTE_ON
public static final byte NOTE_OFF
public static final byte CONTROL_CHANGE
public static final byte PROGRAM_CHANGE
public static final byte PITCH_BEND
public static final byte NRPN_LSB
public static final byte NRPN_MSB
public static final byte RPN_LSB
public static final byte RPN_MSB
public static final byte DATA_LSB
public static final byte DATA_MSB
public static final byte VOLUME
public static final byte BANK
public static final byte MODULATION
public static final byte EXPRESSION
public static final byte SUSTAIN
public static final byte VIBRATE
public static final byte LED_HUE
public static final byte LED_PURITY
public static final byte LED_BRIGHTNESS
public static final byte VIBRATE_70MS
public static final byte NPRN_BUZZER_LSB
public static final byte NPRN_BUZZER_MSB
public static final byte NPRN_FLASHER_LSB
public static final byte NPRN_FLASHER_MSB
public static final byte MAX_MIDI_CHANNELS
public static final byte MAX_MIDI_VOLUME
public static final byte MAX_MIDI_TRACKS
public static final int MAX_INSTRUMENTS
public static final byte MAX_BANKS
public static final byte DEFAULT_PROGRAM
public static final byte DEFAULT_BANK
public static final byte PERCUSSION_CHANNEL
| Constructor Detail |
|---|
public Sequence()
| Method Detail |
|---|
public static Sequence load(byte[] data,
boolean autoDelete)
public static Sequence load(byte[] data)
public static Sequence play(byte[] data,
boolean autoDelete)
public static Sequence play(byte[] data)
public static Sequence play(int resourceID,
boolean autoDelete)
public static Sequence play(int resourceID)
public static Sequence load(File f,
boolean autoDelete)
public static Sequence load(File f)
public static Sequence play(File f,
boolean autoDelete)
public static Sequence play(File f)
public void play()
public abstract String getTitle()
public abstract byte[] getData()
public abstract int getType()
public abstract boolean loadFromData(byte[] data)
public boolean loadFromRingtone(String ringtone)
public boolean loadFromMIDPToneSeq(byte[] data)
public boolean loadFromMidi(byte[] data)
loadFromFile(byte[]) instead
public boolean loadFromRingtone(byte[] data)
loadFromFile(byte[]) instead
public boolean loadFromRmf(byte[] data)
loadFromFile(byte[]) instead
public boolean loadFromFile(byte[] data)
public boolean loadFromResource(int id)
public boolean loadFromResource(int id,
Application app)
public abstract void setBuzzFlashEnable(boolean buzzOn,
boolean flashOn)
public abstract void setBuzzFlash(boolean buzzOn,
boolean flashOn)
public void start()
public boolean startWithFilter(int filter)
public boolean startDefault()
public void start(int filter,
int volume)
public void start(int filter)
VIBRATE,
VIBRATE_70MS,
LED_HUE,
LED_PURITY,
LED_BRIGHTNESS,
ToneFilter.BUZZER,
ToneFilter.FLASHER
public abstract void fadeFromToInTime(int sourceVolume,
int destVolume,
int timeInMiliseconds)
public abstract boolean isLoaded()
public abstract boolean isDone()
public abstract boolean areMidiEventsPending()
public abstract void setMasterTempo(int tempoFactor)
public abstract int getMasterTempo()
public void setPlaybackRate(int rate)
setPlaybackRate in interface PlayableMediarate - - new playback rate; 100 is default rate.public int getPlaybackRate(int rate)
public abstract void muteTrack(byte track)
public abstract void unmuteTrack(byte track)
public abstract void getTrackMuteStatus(boolean[] pTracks)
public abstract void soloTrack(byte track)
public abstract void unSoloTrack(byte track)
public abstract void getSoloTrackStatus(boolean[] pTracks)
public abstract int getMillisecondLength()
public abstract void setMillisecondPosition(int pos)
pos - - position in media to seek topublic abstract int getMillisecondPosition()
public int getMicrosecondLength()
getMillisecondLength() instead.
Playable
public void setMicrosecondPosition(int ticks)
setMillisecondPosition(int) instead.
Playable
public int getMicrosecondPosition()
getMillisecondPosition() instead.
Playable
public abstract void pause()
public abstract void resume()
Playable
public abstract boolean isPaused()
Playable
public abstract void setRouteBus(int routeBus)
public abstract void setVolume(int volume)
public abstract int getVolume()
Playable
public abstract void setPriority(int priority)
priority - - priority level for mediapublic abstract int getPriority()
public abstract void setLoops(int loops)
setLoopCount(int) instead.
public abstract int getLoops()
getLoopCount() instead.
public abstract void setLoopCount(int loopCount)
loopCount - - total number of times to play; 0 means loop forever.public abstract int getLoopCount()
public abstract void allowChannelTranspose(byte channel,
boolean allowPitch)
public abstract boolean doesChannelAllowTranspose(byte channel)
public abstract void muteChannel(byte channel)
public abstract void unmuteChannel(byte channel)
public abstract void getChannelMuteStatus(boolean[] pChannels)
public abstract void soloChannel(byte channel)
public abstract void unSoloChannel(byte channel)
public abstract void getChannelSoloStatus(boolean[] pChannels)
public abstract boolean loadInstrument(int instrument)
public abstract boolean unloadInstrument(int instrument)
public abstract boolean isInstrumentLoaded(int instrument)
public abstract boolean loadInstrument(byte patch,
byte bankLSB,
byte bankMSB)
public abstract boolean unloadInstrument(byte patch,
byte bankLSB,
byte bankMSB)
public abstract boolean isInstrumentLoaded(byte patch,
byte bankLSB,
byte bankMSB)
public abstract int translateBankProgramToInstrument(byte bank,
byte program,
byte channel,
byte note)
public abstract byte getControlValue(byte channel,
byte controller)
public abstract byte getProgram(byte channel)
public abstract byte getBank(byte channel)
public abstract byte getPitchBendLSB(byte channel)
public abstract byte getPitchBendMSB(byte channel)
public abstract void parseMidiData(byte commandByte,
byte data1Byte,
byte data2Byte,
byte data3Byte,
int time)
public void parseMidiData(byte commandByte,
byte data1Byte,
byte data2Byte,
byte data3Byte)
public abstract void noteOff(byte channel,
byte note,
byte velocity,
int time)
public void noteOff(byte channel,
byte note,
byte velocity)
public abstract void noteOnWithLoad(byte channel,
byte note,
byte velocity,
int time)
public void noteOnWithLoad(byte channel,
byte note,
byte velocity)
public abstract void noteOn(byte channel,
byte note,
byte velocity,
int time)
public void noteOn(byte channel,
byte note,
byte velocity)
public abstract void controlChange(byte channel,
byte controlNumber,
byte controlValue,
int time)
public void controlChange(byte channel,
byte controlNumber,
byte controlValue)
public abstract void programBankChange(byte channel,
byte programNumber,
byte bankNumber,
int time)
public void programBankChange(byte channel,
byte programNumber,
byte bankNumber)
public abstract void programBankChange(byte channel,
byte programNumber,
byte bankLSB,
byte bankMSB,
int time)
public abstract void programChange(byte channel,
byte programNumber,
int time)
public void programChange(byte channel,
byte programNumber)
public abstract void pitchBend(byte channel,
byte lsb,
byte msb,
int time)
public void pitchBend(byte channel,
byte lsb,
byte msb)
public void RPN(byte channel,
byte lsb,
byte msb,
byte value,
int time)
public void RPN(byte channel,
byte lsb,
byte msb,
byte value)
public void NRPN(byte channel,
byte lsb,
byte msb,
byte value,
int time)
public void NRPN(byte channel,
byte lsb,
byte msb,
byte value)
public abstract void allNotesOff(int time)
public void allNotesOff()
public int getUniqueID()
Playable
getUniqueID in interface PlayablegetUniqueID in interface PlayableMediapublic int getMediaType()
PlayableMedia
getMediaType in interface PlayableMediapublic void setVolumeClass(int volumeClass)
PlayableAudio
setVolumeClass in interface PlayableAudiopublic int getVolumeClass()
PlayableAudio
getVolumeClass in interface PlayableAudiopublic void setLoopingEnabled(boolean on)
PlayableMediaPlayableMedia.setLoopCount(int) or is 0 (loop forever) by default.
setLoopingEnabled in interface PlayableMediaon - - enable or disable looping.public boolean isLoopingEnabled()
PlayableMediaPlayableMedia.setLoopingEnabled(boolean)).
isLoopingEnabled in interface PlayableMediapublic int getCurrentLoopNumber()
PlayableMedia
getCurrentLoopNumber in interface PlayableMediapublic int getMarkerCount()
PlayableMedia
getMarkerCount in interface PlayableMediapublic int getMarkerID(int index)
PlayableMedia
getMarkerID in interface PlayableMediapublic String getMarkerName(int index)
PlayableMedia
getMarkerName in interface PlayableMediapublic int getMarkerPosition(int index)
PlayableMedia
getMarkerPosition in interface PlayableMediapublic void setPositionToMarker(int markerID)
PlayableMedia
setPositionToMarker in interface PlayableMediamarkerID - - integer ID of the marker (retrieved via PlayableMedia.getMarkerID(int))public void setStereoPosition(int position)
PlayableAudio
setStereoPosition in interface PlayableAudiopublic int getStereoPosition()
PlayableAudio
getStereoPosition in interface PlayableAudiopublic void setMute(boolean mute)
PlayableAudio
setMute in interface PlayableAudiopublic boolean isMuted()
PlayableAudio
isMuted in interface PlayableAudiopublic void startPlaying()
PlayableMedia
startPlaying in interface PlayableMediapublic void startPlaying(int attributes)
PlayableMedia
startPlaying in interface PlayableMediaattributes - - class-specific attributes applied to this playbackpublic boolean isPlaying()
PlayableMedia
isPlaying in interface PlayableMediapublic void stopPlaying()
PlayableMedia
stopPlaying in interface PlayableMediapublic int getPlaybackRate()
PlayableMedia
getPlaybackRate in interface PlayableMediapublic void setTranspose(int semitones)
PlayableAudioPlayableAudio.setTuning(int) and PlayableAudio.getTuning()
setTranspose in interface PlayableAudiopublic int getTranspose()
PlayableAudioPlayableAudio.setTuning(int) has been called, This will truncate actual value to nearest 100 cents
getTranspose in interface PlayableAudiopublic void setTuning(int cents)
PlayableAudioPlayableAudio.setTranspose(int) and PlayableAudio.getTranspose()
setTuning in interface PlayableAudiopublic int getTuning()
PlayableAudioPlayableAudio.setTranspose(int) and PlayableAudio.getTranspose()
getTuning in interface PlayableAudio
public void setPositionCallbackEvent(Event event,
int position)
PlayableMedia
setPositionCallbackEvent in interface PlayableMediaevent - - event to be postedposition - - time in milliseconds at which the event should be postedpublic void setDoneCallbackEvent(Event done)
PlayableMedia
setDoneCallbackEvent in interface PlayableMediadone - - event to be posted
public void setDoneCallbackEvent(Event done,
boolean doEventOnce)
PlayableMedia
setDoneCallbackEvent in interface PlayableMediadone - - event to be posteddoEventOnce - - if true, callback only called once for a given playbackpublic void setStoppedCallbackEvent(Event stopped)
PlayableMedia
setStoppedCallbackEvent in interface PlayableMediastopped - - event to be posted
public void setStoppedCallbackEvent(Event stopped,
boolean doEventOnce)
PlayableMedia
setStoppedCallbackEvent in interface PlayableMediastopped - - event to be posteddoEventOnce - - if true, callback only called once for a given playbackpublic void destroy()
Playable
destroy in interface Playabledestroy in interface PlayableMediapublic boolean startAtOffset(int startOffset)
public void stop()
Playable
stop in interface Playable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||