|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MixChunk | |
---|---|
sdljava.mixer | Provides all the functions which are defined in the SDL_mixer.h header |
Uses of MixChunk in sdljava.mixer |
---|
Methods in sdljava.mixer that return MixChunk | |
---|---|
static MixChunk |
SDLMixer.getChunk(int channel)
Get the most recent sample chunk pointer played on channel. |
static MixChunk |
SDLMixer.loadWAV(java.nio.Buffer buf)
Load file for use as a sample. |
static MixChunk |
SDLMixer.loadWAV(byte[] data)
Load file for use as a sample. |
static MixChunk |
SDLMixer.loadWAV(java.io.InputStream in)
Load file for use as a sample. |
static MixChunk |
SDLMixer.loadWAV(java.lang.String path)
Load file for use as a sample. |
static MixChunk |
SDLMixer.loadWAV(java.net.URL url)
Load file for use as a sample. |
Methods in sdljava.mixer with parameters of type MixChunk | |
---|---|
static int |
SDLMixer.fadeInChannel(int channel,
MixChunk chunk,
int loops,
int ms)
Play chunk on channel, or if channel is -1, pick the first free unreserved channel. |
static int |
SDLMixer.fadeInChannelTimed(int channel,
MixChunk chunk,
int loops,
int ms,
int ticks)
f the sample is long enough and has enough loops then the sample will stop after ticks milliseconds. |
static void |
SDLMixer.freeChunk(MixChunk chunk)
Free the memory used in chunk, and free chunk itself as well. |
static int |
SDLMixer.playChannel(int channel,
MixChunk chunk,
int loops)
Play chunk on channel, or if channel is -1, pick the first free unreserved channel. |
static int |
SDLMixer.playChannelTimed(int channel,
MixChunk chunk,
int loops,
int ticks)
If the sample is long enough and has enough loops then the sample will stop after ticks milliseconds. |
static int |
SDLMixer.volumeChunk(MixChunk chunk,
int volume)
Set chunk->volume to volume. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |