|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use FSoundSample | |
---|---|
org.lwjgl.fmod3 |
Uses of FSoundSample in org.lwjgl.fmod3 |
---|
Methods in org.lwjgl.fmod3 that return FSoundSample | |
---|---|
static FSoundSample |
FMusic.FMUSIC_GetSample(FMusicModule module,
int sampno)
Returns a reference to a sample inside a module. |
static FSoundSample |
FSound.FSOUND_GetCurrentSample(int channel)
Returns the current sample being played on the specified channel Remarks Note that current sample does not return to NULL when a sound has ended. |
static FSoundSample |
FSound.FSOUND_Sample_Alloc(int index,
int length,
int mode,
int deffreq,
int defvol,
int defpan,
int defpri)
Allocates a new empty sample. |
static FSoundSample |
FSound.FSOUND_Sample_Get(int sampno)
Returns a reference to a managed sample based on the index passed Remarks Samples that are not created with FSOUND_UNMANAGED are stored in a table inside FMOD. |
static FSoundSample |
FSound.FSOUND_Sample_Load(int index,
java.nio.ByteBuffer data,
int inputmode)
Loads and decodes a static soundfile into memory. |
static FSoundSample |
FSound.FSOUND_Sample_Load(int index,
java.lang.String name,
int inputmode,
int offset,
int length)
|
static FSoundSample |
FSound.FSOUND_Stream_GetSample(FSoundStream stream)
Returns the FSOUND_SAMPLE definition that the stream uses internally. |
Methods in org.lwjgl.fmod3 with parameters of type FSoundSample | |
---|---|
static boolean |
FMusic.FMUSIC_SetSample(FMusicModule module,
int sampno,
FSoundSample sptr)
Replaces a mod's sample with a sample definition specified. |
static int |
FSound.FSOUND_PlaySound(int channel,
FSoundSample sample)
Plays a sample in a specified channel, using the sample's default frequency, volume and pan settings. |
static boolean |
FSound.FSOUND_Record_StartSample(FSoundSample sample,
boolean loop)
Starts recording into a predefined sample using the sample's default playback rate as the recording rate Remarks If you want to play back the sample at the same time is is recording, you will have to play the sound and try and keep it just behind the recording cursor. |
static void |
FSound.FSOUND_Sample_Free(FSoundSample sample)
Removes a sample from memory and makes its slot available again |
static boolean |
FSound.FSOUND_Sample_GetDefaults(FSoundSample sample,
java.nio.IntBuffer deffreq,
java.nio.IntBuffer defvol,
java.nio.IntBuffer defpan,
java.nio.IntBuffer defpri)
Returns the default volume, frequency, pan and priority values for the specified sample Remarks Passing NULL in any of these parameters will result in the value being ignored |
static boolean |
FSound.FSOUND_Sample_GetDefaultsEx(FSoundSample sample,
java.nio.IntBuffer deffreq,
java.nio.IntBuffer defvol,
java.nio.IntBuffer defpan,
java.nio.IntBuffer defpri,
java.nio.IntBuffer varfreq,
java.nio.IntBuffer varvol,
java.nio.IntBuffer varpan)
Returns the default volume, frequency, pan, priority and random playback variations for the specified sample Remarks Passing NULL in any of these parameters will result in the value being ignored |
static int |
FSound.FSOUND_Sample_GetLength(FSoundSample sample)
Returns the length of the sample in SAMPLES |
static int |
FSound.FSOUND_Sample_GetLoopPoints(FSoundSample sample,
java.nio.IntBuffer loopstart,
java.nio.IntBuffer loopend)
Returns the start and end positions of the specified sample loop in SAMPLES (not bytes) Remarks Passing NULL in any of these parameters will result in the value being ignored. |
static int |
FSound.FSOUND_Sample_GetMinMaxDistance(FSoundSample sample,
java.nio.FloatBuffer min,
java.nio.FloatBuffer max)
Get the minimum and maximum audible distance for a sample Remarks A 'distance unit' is specified by FSOUND_3D_SetDistanceFactor. |
static int |
FSound.FSOUND_Sample_GetMode(FSoundSample sample)
Returns a bitfield containing information about the specified sample. |
static java.lang.String |
FSound.FSOUND_Sample_GetName(FSoundSample sample)
Returns a string containing the sample's name |
static boolean |
FSound.FSOUND_Sample_Lock(FSoundSample sample,
int offset,
int length,
FSoundSampleLock lock)
Returns a reference to the beginning of the sample data for a sample. |
static boolean |
FSound.FSOUND_Sample_SetDefaults(FSoundSample sample,
int deffreq,
int defvol,
int defpan,
int defpri)
Sets a sample's default attributes, so when it is played it uses these values without having to specify them later. |
static boolean |
FSound.FSOUND_Sample_SetDefaultsEx(FSoundSample sample,
int deffreq,
int defvol,
int defpan,
int defpri,
int varfreq,
int varvol,
int varpan)
Sets a sample's default attributes, so when it is played it uses these values without having to specify them later. |
static boolean |
FSound.FSOUND_Sample_SetMaxPlaybacks(FSoundSample sample,
int max)
Sets the maximum number of times a sample can play back at once |
static boolean |
FSound.FSOUND_Sample_SetMinMaxDistance(FSoundSample sample,
float min,
float max)
Sets the minimum and maximum audible distance for a sample. |
static boolean |
FSound.FSOUND_Sample_SetMode(FSoundSample sample,
int mode)
Sets a sample's mode. |
static boolean |
FSound.FSOUND_Sample_Unlock(FSoundSample sample,
FSoundSampleLock lock)
Releases previous sample data lock from FSOUND_Sample_Lock |
static boolean |
FSound.FSOUND_Sample_Upload(FSoundSample sample,
java.nio.ByteBuffer srcdata,
int mode)
This function uploads new sound data from memory to a preallocated/existing sample and does conversion based on the specified source mode. |
static int |
FSound.nFSOUND_PlaySoundEx(int channel,
FSoundSample sample,
FSoundDSPUnit dspunit,
boolean startpaused)
Extended featured version of FSOUND_PlaySound. |
static boolean |
FSound.nFSOUND_Sample_SetLoopPoints(FSoundSample sample,
int loopstart,
int loopend)
Sets a sample's loop points, specified in SAMPLES, not bytes Remarks Samples created with FSOUND_HW3D and FSOUND_HW2D under the FSOUND_OUTPUT_DSOUND output mode do not support this function. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |