org.jouvieje.fmodex
Class Sound

java.lang.Object
  extended byorg.jouvieje.fmodex.utils.Pointer
      extended byorg.jouvieje.fmodex.Sound

public class Sound
extends Pointer

'Sound' API


Constructor Summary
Sound()
           
 
Method Summary
 FMOD_RESULT addSyncPoint(int offset, int offsettype, java.lang.String name, FMOD_SYNCPOINT point)
           
static Sound asSound(Pointer pointer)
          Create a view of the Pointer object as a Sound object.
 FMOD_RESULT deleteSyncPoint(FMOD_SYNCPOINT point)
           
 FMOD_RESULT get3DConeSettings(java.nio.FloatBuffer insideconeangle, java.nio.FloatBuffer outsideconeangle, java.nio.FloatBuffer outsidevolume)
           
 FMOD_RESULT get3DCustomRolloff(FMOD_VECTOR points, java.nio.IntBuffer numpoints)
           
 FMOD_RESULT get3DMinMaxDistance(java.nio.FloatBuffer min, java.nio.FloatBuffer max)
           
 FMOD_RESULT getDefaults(java.nio.FloatBuffer frequency, java.nio.FloatBuffer volume, java.nio.FloatBuffer pan, java.nio.IntBuffer priority)
           
 FMOD_RESULT getFormat(FMOD_SOUND_TYPE[] type, FMOD_SOUND_FORMAT[] format, java.nio.IntBuffer channels, java.nio.IntBuffer bits)
           
 FMOD_RESULT getLength(java.nio.IntBuffer length, int lengthtype)
           
 FMOD_RESULT getLoopCount(java.nio.IntBuffer loopcount)
           
 FMOD_RESULT getLoopPoints(java.nio.IntBuffer loopstart, int loopstarttype, java.nio.IntBuffer loopend, int loopendtype)
           
 FMOD_RESULT getMemoryInfo(int memorybits, int event_memorybits, java.nio.IntBuffer memoryused, FMOD_MEMORY_USAGE_DETAILS memoryused_details)
           
 FMOD_RESULT getMode(java.nio.IntBuffer mode)
           
 FMOD_RESULT getMusicChannelVolume(int channel, java.nio.FloatBuffer volume)
           
 FMOD_RESULT getMusicNumChannels(java.nio.IntBuffer numchannels)
           
 FMOD_RESULT getName(java.nio.ByteBuffer name, int namelen)
           
 FMOD_RESULT getNumSubSounds(java.nio.IntBuffer numsubsounds)
           
 FMOD_RESULT getNumSyncPoints(java.nio.IntBuffer numsyncpoints)
           
 FMOD_RESULT getNumTags(java.nio.IntBuffer numtags, java.nio.IntBuffer numtagsupdated)
           
 FMOD_RESULT getOpenState(FMOD_OPENSTATE[] openstate, java.nio.IntBuffer percentbuffered, java.nio.ByteBuffer starving)
           
 FMOD_RESULT getSoundGroup(SoundGroup soundgroup)
           
 FMOD_RESULT getSubSound(int index, Sound subsound)
           
 FMOD_RESULT getSyncPoint(int index, FMOD_SYNCPOINT point)
           
 FMOD_RESULT getSyncPointInfo(FMOD_SYNCPOINT point, java.nio.ByteBuffer name, int namelen, java.nio.IntBuffer offset, int offsettype)
           
 FMOD_RESULT getSystemObject(System system)
           
 FMOD_RESULT getTag(java.lang.String name, int index, FMOD_TAG tag)
           
 FMOD_RESULT getUserData(Pointer userdata)
           
 FMOD_RESULT getVariations(java.nio.FloatBuffer frequencyvar, java.nio.FloatBuffer volumevar, java.nio.FloatBuffer panvar)
           
 FMOD_RESULT lock(int offset, int length, java.nio.ByteBuffer[] ptr1, java.nio.ByteBuffer[] ptr2, java.nio.IntBuffer len1, java.nio.IntBuffer len2)
           
 FMOD_RESULT readData(java.nio.ByteBuffer buffer, int lenbytes, java.nio.IntBuffer read)
           
 FMOD_RESULT release()
           
 FMOD_RESULT seekData(int pcm)
           
 FMOD_RESULT set3DConeSettings(float insideconeangle, float outsideconeangle, float outsidevolume)
           
 FMOD_RESULT set3DCustomRolloff(FMOD_VECTOR points, int numpoints)
           
 FMOD_RESULT set3DMinMaxDistance(float min, float max)
           
 FMOD_RESULT setDefaults(float frequency, float volume, float pan, int priority)
           
 FMOD_RESULT setLoopCount(int loopcount)
           
 FMOD_RESULT setLoopPoints(int loopstart, int loopstarttype, int loopend, int loopendtype)
           
 FMOD_RESULT setMode(int mode)
           
 FMOD_RESULT setMusicChannelVolume(int channel, float volume)
           
 FMOD_RESULT setSoundGroup(SoundGroup soundgroup)
           
 FMOD_RESULT setSubSound(int index, Sound subsound)
           
 FMOD_RESULT setSubSoundSentence(java.nio.IntBuffer subsoundlist, int numsubsounds)
           
 FMOD_RESULT setUserData(Pointer userdata)
           
 FMOD_RESULT setVariations(float frequencyvar, float volumevar, float panvar)
           
 FMOD_RESULT unlock(java.nio.ByteBuffer ptr1, java.nio.ByteBuffer ptr2, int len1, int len2)
           
 
Methods inherited from class org.jouvieje.fmodex.utils.Pointer
asByteBuffer, asDouble, asFloat, asInt, asLong, asPointer, asString, asString, equals, isNull, shareMemory
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound()
Method Detail

asSound

public static Sound asSound(Pointer pointer)
Create a view of the Pointer object as a Sound object.
This view is valid only if the memory holded by the Pointer holds a Sound object.


release

public FMOD_RESULT release()

getSystemObject

public FMOD_RESULT getSystemObject(System system)

lock

public FMOD_RESULT lock(int offset,
                        int length,
                        java.nio.ByteBuffer[] ptr1,
                        java.nio.ByteBuffer[] ptr2,
                        java.nio.IntBuffer len1,
                        java.nio.IntBuffer len2)

unlock

public FMOD_RESULT unlock(java.nio.ByteBuffer ptr1,
                          java.nio.ByteBuffer ptr2,
                          int len1,
                          int len2)

setDefaults

public FMOD_RESULT setDefaults(float frequency,
                               float volume,
                               float pan,
                               int priority)

getDefaults

public FMOD_RESULT getDefaults(java.nio.FloatBuffer frequency,
                               java.nio.FloatBuffer volume,
                               java.nio.FloatBuffer pan,
                               java.nio.IntBuffer priority)

setVariations

public FMOD_RESULT setVariations(float frequencyvar,
                                 float volumevar,
                                 float panvar)

getVariations

public FMOD_RESULT getVariations(java.nio.FloatBuffer frequencyvar,
                                 java.nio.FloatBuffer volumevar,
                                 java.nio.FloatBuffer panvar)

set3DMinMaxDistance

public FMOD_RESULT set3DMinMaxDistance(float min,
                                       float max)

get3DMinMaxDistance

public FMOD_RESULT get3DMinMaxDistance(java.nio.FloatBuffer min,
                                       java.nio.FloatBuffer max)

set3DConeSettings

public FMOD_RESULT set3DConeSettings(float insideconeangle,
                                     float outsideconeangle,
                                     float outsidevolume)

get3DConeSettings

public FMOD_RESULT get3DConeSettings(java.nio.FloatBuffer insideconeangle,
                                     java.nio.FloatBuffer outsideconeangle,
                                     java.nio.FloatBuffer outsidevolume)

set3DCustomRolloff

public FMOD_RESULT set3DCustomRolloff(FMOD_VECTOR points,
                                      int numpoints)

get3DCustomRolloff

public FMOD_RESULT get3DCustomRolloff(FMOD_VECTOR points,
                                      java.nio.IntBuffer numpoints)

setSubSound

public FMOD_RESULT setSubSound(int index,
                               Sound subsound)

getSubSound

public FMOD_RESULT getSubSound(int index,
                               Sound subsound)

setSubSoundSentence

public FMOD_RESULT setSubSoundSentence(java.nio.IntBuffer subsoundlist,
                                       int numsubsounds)

getName

public FMOD_RESULT getName(java.nio.ByteBuffer name,
                           int namelen)

getLength

public FMOD_RESULT getLength(java.nio.IntBuffer length,
                             int lengthtype)

getFormat

public FMOD_RESULT getFormat(FMOD_SOUND_TYPE[] type,
                             FMOD_SOUND_FORMAT[] format,
                             java.nio.IntBuffer channels,
                             java.nio.IntBuffer bits)

getNumSubSounds

public FMOD_RESULT getNumSubSounds(java.nio.IntBuffer numsubsounds)

getNumTags

public FMOD_RESULT getNumTags(java.nio.IntBuffer numtags,
                              java.nio.IntBuffer numtagsupdated)

getTag

public FMOD_RESULT getTag(java.lang.String name,
                          int index,
                          FMOD_TAG tag)

getOpenState

public FMOD_RESULT getOpenState(FMOD_OPENSTATE[] openstate,
                                java.nio.IntBuffer percentbuffered,
                                java.nio.ByteBuffer starving)

readData

public FMOD_RESULT readData(java.nio.ByteBuffer buffer,
                            int lenbytes,
                            java.nio.IntBuffer read)

seekData

public FMOD_RESULT seekData(int pcm)

setSoundGroup

public FMOD_RESULT setSoundGroup(SoundGroup soundgroup)

getSoundGroup

public FMOD_RESULT getSoundGroup(SoundGroup soundgroup)

getNumSyncPoints

public FMOD_RESULT getNumSyncPoints(java.nio.IntBuffer numsyncpoints)

getSyncPoint

public FMOD_RESULT getSyncPoint(int index,
                                FMOD_SYNCPOINT point)

getSyncPointInfo

public FMOD_RESULT getSyncPointInfo(FMOD_SYNCPOINT point,
                                    java.nio.ByteBuffer name,
                                    int namelen,
                                    java.nio.IntBuffer offset,
                                    int offsettype)

addSyncPoint

public FMOD_RESULT addSyncPoint(int offset,
                                int offsettype,
                                java.lang.String name,
                                FMOD_SYNCPOINT point)

deleteSyncPoint

public FMOD_RESULT deleteSyncPoint(FMOD_SYNCPOINT point)

setMode

public FMOD_RESULT setMode(int mode)

getMode

public FMOD_RESULT getMode(java.nio.IntBuffer mode)

setLoopCount

public FMOD_RESULT setLoopCount(int loopcount)

getLoopCount

public FMOD_RESULT getLoopCount(java.nio.IntBuffer loopcount)

setLoopPoints

public FMOD_RESULT setLoopPoints(int loopstart,
                                 int loopstarttype,
                                 int loopend,
                                 int loopendtype)

getLoopPoints

public FMOD_RESULT getLoopPoints(java.nio.IntBuffer loopstart,
                                 int loopstarttype,
                                 java.nio.IntBuffer loopend,
                                 int loopendtype)

getMusicNumChannels

public FMOD_RESULT getMusicNumChannels(java.nio.IntBuffer numchannels)

setMusicChannelVolume

public FMOD_RESULT setMusicChannelVolume(int channel,
                                         float volume)

getMusicChannelVolume

public FMOD_RESULT getMusicChannelVolume(int channel,
                                         java.nio.FloatBuffer volume)

setUserData

public FMOD_RESULT setUserData(Pointer userdata)

getUserData

public FMOD_RESULT getUserData(Pointer userdata)

getMemoryInfo

public FMOD_RESULT getMemoryInfo(int memorybits,
                                 int event_memorybits,
                                 java.nio.IntBuffer memoryused,
                                 FMOD_MEMORY_USAGE_DETAILS memoryused_details)


NativeFmodEx Project - © Copyright 2005-2010 - Jérôme Jouvie (Jouvieje)
NativeFmodEx is an Open Source Project under GNU LGPL License
My sites : http://jerome.jouvie.free.fr/

(Documentation Copyright © Firelight Technologies - FMOD Ex - http://www.fmod.org)