C# Class FMOD.Sound

Afficher le fichier Open project: punker76/simple-music-player Class Usage Examples

Méthodes publiques

Méthode Description
@lock ( uint offset, uint length, IntPtr &ptr1, IntPtr &ptr2, uint &len1, uint &len2 ) : RESULT
Sound ( IntPtr raw ) : System
addSyncPoint ( uint offset, TIMEUNIT offsettype, string name, IntPtr &point ) : RESULT
deleteSyncPoint ( IntPtr point ) : RESULT
get3DConeSettings ( float &insideconeangle, float &outsideconeangle, float &outsidevolume ) : RESULT
get3DCustomRolloff ( IntPtr &points, int &numpoints ) : RESULT
get3DMinMaxDistance ( float &min, float &max ) : RESULT
getDefaults ( float &frequency, int &priority ) : RESULT
getFormat ( SOUND_TYPE &type, SOUND_FORMAT &format, int &channels, int &bits ) : RESULT
getLength ( uint &length, TIMEUNIT lengthtype ) : RESULT
getLoopCount ( int &loopcount ) : RESULT
getLoopPoints ( uint &loopstart, TIMEUNIT loopstarttype, uint &loopend, TIMEUNIT loopendtype ) : RESULT
getMode ( MODE &mode ) : RESULT
getMusicChannelVolume ( int channel, float &volume ) : RESULT
getMusicNumChannels ( int &numchannels ) : RESULT
getMusicSpeed ( float &speed ) : RESULT
getName ( StringBuilder name, int namelen ) : RESULT
getNumSubSounds ( int &numsubsounds ) : RESULT
getNumSyncPoints ( int &numsyncpoints ) : RESULT
getNumTags ( int &numtags, int &numtagsupdated ) : RESULT
getOpenState ( OPENSTATE &openstate, uint &percentbuffered, bool &starving, bool &diskbusy ) : RESULT
getSoundGroup ( SoundGroup &soundgroup ) : RESULT
getSubSound ( int index, Sound &subsound ) : RESULT
getSubSoundParent ( Sound &parentsound ) : RESULT
getSyncPoint ( int index, IntPtr &point ) : RESULT
getSyncPointInfo ( IntPtr point, StringBuilder name, int namelen, uint &offset, TIMEUNIT offsettype ) : RESULT
getSystemObject ( System &system ) : RESULT
getTag ( string name, int index, TAG &tag ) : RESULT
getUserData ( IntPtr &userdata ) : RESULT
readData ( IntPtr buffer, uint lenbytes, uint &read ) : RESULT
release ( ) : RESULT
seekData ( uint pcm ) : RESULT
set3DConeSettings ( float insideconeangle, float outsideconeangle, float outsidevolume ) : RESULT
set3DCustomRolloff ( VECTOR &points, int numpoints ) : RESULT
set3DMinMaxDistance ( float min, float max ) : RESULT
setDefaults ( float frequency, int priority ) : RESULT
setLoopCount ( int loopcount ) : RESULT
setLoopPoints ( uint loopstart, TIMEUNIT loopstarttype, uint loopend, TIMEUNIT loopendtype ) : RESULT
setMode ( MODE mode ) : RESULT
setMusicChannelVolume ( int channel, float volume ) : RESULT
setMusicSpeed ( float speed ) : RESULT
setSoundGroup ( SoundGroup soundgroup ) : RESULT
setUserData ( IntPtr userdata ) : RESULT
unlock ( IntPtr ptr1, IntPtr ptr2, uint len1, uint len2 ) : RESULT

Private Methods

Méthode Description
FMOD_Sound_AddSyncPoint ( IntPtr sound, uint offset, TIMEUNIT offsettype, string name, IntPtr &point ) : RESULT
FMOD_Sound_DeleteSyncPoint ( IntPtr sound, IntPtr point ) : RESULT
FMOD_Sound_Get3DConeSettings ( IntPtr sound, float &insideconeangle, float &outsideconeangle, float &outsidevolume ) : RESULT
FMOD_Sound_Get3DCustomRolloff ( IntPtr sound, IntPtr &points, int &numpoints ) : RESULT
FMOD_Sound_Get3DMinMaxDistance ( IntPtr sound, float &min, float &max ) : RESULT
FMOD_Sound_GetDefaults ( IntPtr sound, float &frequency, int &priority ) : RESULT
FMOD_Sound_GetFormat ( IntPtr sound, SOUND_TYPE &type, SOUND_FORMAT &format, int &channels, int &bits ) : RESULT
FMOD_Sound_GetLength ( IntPtr sound, uint &length, TIMEUNIT lengthtype ) : RESULT
FMOD_Sound_GetLoopCount ( IntPtr sound, int &loopcount ) : RESULT
FMOD_Sound_GetLoopPoints ( IntPtr sound, uint &loopstart, TIMEUNIT loopstarttype, uint &loopend, TIMEUNIT loopendtype ) : RESULT
FMOD_Sound_GetMode ( IntPtr sound, MODE &mode ) : RESULT
FMOD_Sound_GetMusicChannelVolume ( IntPtr sound, int channel, float &volume ) : RESULT
FMOD_Sound_GetMusicNumChannels ( IntPtr sound, int &numchannels ) : RESULT
FMOD_Sound_GetMusicSpeed ( IntPtr sound, float &speed ) : RESULT
FMOD_Sound_GetName ( IntPtr sound, IntPtr name, int namelen ) : RESULT
FMOD_Sound_GetNumSubSounds ( IntPtr sound, int &numsubsounds ) : RESULT
FMOD_Sound_GetNumSyncPoints ( IntPtr sound, int &numsyncpoints ) : RESULT
FMOD_Sound_GetNumTags ( IntPtr sound, int &numtags, int &numtagsupdated ) : RESULT
FMOD_Sound_GetOpenState ( IntPtr sound, OPENSTATE &openstate, uint &percentbuffered, bool &starving, bool &diskbusy ) : RESULT
FMOD_Sound_GetSoundGroup ( IntPtr sound, IntPtr &soundgroup ) : RESULT
FMOD_Sound_GetSubSound ( IntPtr sound, int index, IntPtr &subsound ) : RESULT
FMOD_Sound_GetSubSoundParent ( IntPtr sound, IntPtr &parentsound ) : RESULT
FMOD_Sound_GetSyncPoint ( IntPtr sound, int index, IntPtr &point ) : RESULT
FMOD_Sound_GetSyncPointInfo ( IntPtr sound, IntPtr point, IntPtr name, int namelen, uint &offset, TIMEUNIT offsettype ) : RESULT
FMOD_Sound_GetSystemObject ( IntPtr sound, IntPtr &system ) : RESULT
FMOD_Sound_GetTag ( IntPtr sound, string name, int index, TAG &tag ) : RESULT
FMOD_Sound_GetUserData ( IntPtr sound, IntPtr &userdata ) : RESULT
FMOD_Sound_Lock ( IntPtr sound, uint offset, uint length, IntPtr &ptr1, IntPtr &ptr2, uint &len1, uint &len2 ) : RESULT
FMOD_Sound_ReadData ( IntPtr sound, IntPtr buffer, uint lenbytes, uint &read ) : RESULT
FMOD_Sound_Release ( IntPtr sound ) : RESULT
FMOD_Sound_SeekData ( IntPtr sound, uint pcm ) : RESULT
FMOD_Sound_Set3DConeSettings ( IntPtr sound, float insideconeangle, float outsideconeangle, float outsidevolume ) : RESULT
FMOD_Sound_Set3DCustomRolloff ( IntPtr sound, VECTOR &points, int numpoints ) : RESULT
FMOD_Sound_Set3DMinMaxDistance ( IntPtr sound, float min, float max ) : RESULT
FMOD_Sound_SetDefaults ( IntPtr sound, float frequency, int priority ) : RESULT
FMOD_Sound_SetLoopCount ( IntPtr sound, int loopcount ) : RESULT
FMOD_Sound_SetLoopPoints ( IntPtr sound, uint loopstart, TIMEUNIT loopstarttype, uint loopend, TIMEUNIT loopendtype ) : RESULT
FMOD_Sound_SetMode ( IntPtr sound, MODE mode ) : RESULT
FMOD_Sound_SetMusicChannelVolume ( IntPtr sound, int channel, float volume ) : RESULT
FMOD_Sound_SetMusicSpeed ( IntPtr sound, float speed ) : RESULT
FMOD_Sound_SetSoundGroup ( IntPtr sound, IntPtr soundgroup ) : RESULT
FMOD_Sound_SetUserData ( IntPtr sound, IntPtr userdata ) : RESULT
FMOD_Sound_Unlock ( IntPtr sound, IntPtr ptr1, IntPtr ptr2, uint len1, uint len2 ) : RESULT

Method Details

@lock() public méthode

public @lock ( uint offset, uint length, IntPtr &ptr1, IntPtr &ptr2, uint &len1, uint &len2 ) : RESULT
offset uint
length uint
ptr1 System.IntPtr
ptr2 System.IntPtr
len1 uint
len2 uint
Résultat RESULT

Sound() public méthode

public Sound ( IntPtr raw ) : System
raw System.IntPtr
Résultat System

addSyncPoint() public méthode

public addSyncPoint ( uint offset, TIMEUNIT offsettype, string name, IntPtr &point ) : RESULT
offset uint
offsettype TIMEUNIT
name string
point System.IntPtr
Résultat RESULT

deleteSyncPoint() public méthode

public deleteSyncPoint ( IntPtr point ) : RESULT
point System.IntPtr
Résultat RESULT

get3DConeSettings() public méthode

public get3DConeSettings ( float &insideconeangle, float &outsideconeangle, float &outsidevolume ) : RESULT
insideconeangle float
outsideconeangle float
outsidevolume float
Résultat RESULT

get3DCustomRolloff() public méthode

public get3DCustomRolloff ( IntPtr &points, int &numpoints ) : RESULT
points System.IntPtr
numpoints int
Résultat RESULT

get3DMinMaxDistance() public méthode

public get3DMinMaxDistance ( float &min, float &max ) : RESULT
min float
max float
Résultat RESULT

getDefaults() public méthode

public getDefaults ( float &frequency, int &priority ) : RESULT
frequency float
priority int
Résultat RESULT

getFormat() public méthode

public getFormat ( SOUND_TYPE &type, SOUND_FORMAT &format, int &channels, int &bits ) : RESULT
type SOUND_TYPE
format SOUND_FORMAT
channels int
bits int
Résultat RESULT

getLength() public méthode

public getLength ( uint &length, TIMEUNIT lengthtype ) : RESULT
length uint
lengthtype TIMEUNIT
Résultat RESULT

getLoopCount() public méthode

public getLoopCount ( int &loopcount ) : RESULT
loopcount int
Résultat RESULT

getLoopPoints() public méthode

public getLoopPoints ( uint &loopstart, TIMEUNIT loopstarttype, uint &loopend, TIMEUNIT loopendtype ) : RESULT
loopstart uint
loopstarttype TIMEUNIT
loopend uint
loopendtype TIMEUNIT
Résultat RESULT

getMode() public méthode

public getMode ( MODE &mode ) : RESULT
mode MODE
Résultat RESULT

getMusicChannelVolume() public méthode

public getMusicChannelVolume ( int channel, float &volume ) : RESULT
channel int
volume float
Résultat RESULT

getMusicNumChannels() public méthode

public getMusicNumChannels ( int &numchannels ) : RESULT
numchannels int
Résultat RESULT

getMusicSpeed() public méthode

public getMusicSpeed ( float &speed ) : RESULT
speed float
Résultat RESULT

getName() public méthode

public getName ( StringBuilder name, int namelen ) : RESULT
name StringBuilder
namelen int
Résultat RESULT

getNumSubSounds() public méthode

public getNumSubSounds ( int &numsubsounds ) : RESULT
numsubsounds int
Résultat RESULT

getNumSyncPoints() public méthode

public getNumSyncPoints ( int &numsyncpoints ) : RESULT
numsyncpoints int
Résultat RESULT

getNumTags() public méthode

public getNumTags ( int &numtags, int &numtagsupdated ) : RESULT
numtags int
numtagsupdated int
Résultat RESULT

getOpenState() public méthode

public getOpenState ( OPENSTATE &openstate, uint &percentbuffered, bool &starving, bool &diskbusy ) : RESULT
openstate OPENSTATE
percentbuffered uint
starving bool
diskbusy bool
Résultat RESULT

getSoundGroup() public méthode

public getSoundGroup ( SoundGroup &soundgroup ) : RESULT
soundgroup SoundGroup
Résultat RESULT

getSubSound() public méthode

public getSubSound ( int index, Sound &subsound ) : RESULT
index int
subsound Sound
Résultat RESULT

getSubSoundParent() public méthode

public getSubSoundParent ( Sound &parentsound ) : RESULT
parentsound Sound
Résultat RESULT

getSyncPoint() public méthode

public getSyncPoint ( int index, IntPtr &point ) : RESULT
index int
point System.IntPtr
Résultat RESULT

getSyncPointInfo() public méthode

public getSyncPointInfo ( IntPtr point, StringBuilder name, int namelen, uint &offset, TIMEUNIT offsettype ) : RESULT
point System.IntPtr
name StringBuilder
namelen int
offset uint
offsettype TIMEUNIT
Résultat RESULT

getSystemObject() public méthode

public getSystemObject ( System &system ) : RESULT
system System
Résultat RESULT

getTag() public méthode

public getTag ( string name, int index, TAG &tag ) : RESULT
name string
index int
tag TAG
Résultat RESULT

getUserData() public méthode

public getUserData ( IntPtr &userdata ) : RESULT
userdata System.IntPtr
Résultat RESULT

readData() public méthode

public readData ( IntPtr buffer, uint lenbytes, uint &read ) : RESULT
buffer System.IntPtr
lenbytes uint
read uint
Résultat RESULT

release() public méthode

public release ( ) : RESULT
Résultat RESULT

seekData() public méthode

public seekData ( uint pcm ) : RESULT
pcm uint
Résultat RESULT

set3DConeSettings() public méthode

public set3DConeSettings ( float insideconeangle, float outsideconeangle, float outsidevolume ) : RESULT
insideconeangle float
outsideconeangle float
outsidevolume float
Résultat RESULT

set3DCustomRolloff() public méthode

public set3DCustomRolloff ( VECTOR &points, int numpoints ) : RESULT
points VECTOR
numpoints int
Résultat RESULT

set3DMinMaxDistance() public méthode

public set3DMinMaxDistance ( float min, float max ) : RESULT
min float
max float
Résultat RESULT

setDefaults() public méthode

public setDefaults ( float frequency, int priority ) : RESULT
frequency float
priority int
Résultat RESULT

setLoopCount() public méthode

public setLoopCount ( int loopcount ) : RESULT
loopcount int
Résultat RESULT

setLoopPoints() public méthode

public setLoopPoints ( uint loopstart, TIMEUNIT loopstarttype, uint loopend, TIMEUNIT loopendtype ) : RESULT
loopstart uint
loopstarttype TIMEUNIT
loopend uint
loopendtype TIMEUNIT
Résultat RESULT

setMode() public méthode

public setMode ( MODE mode ) : RESULT
mode MODE
Résultat RESULT

setMusicChannelVolume() public méthode

public setMusicChannelVolume ( int channel, float volume ) : RESULT
channel int
volume float
Résultat RESULT

setMusicSpeed() public méthode

public setMusicSpeed ( float speed ) : RESULT
speed float
Résultat RESULT

setSoundGroup() public méthode

public setSoundGroup ( SoundGroup soundgroup ) : RESULT
soundgroup SoundGroup
Résultat RESULT

setUserData() public méthode

public setUserData ( IntPtr userdata ) : RESULT
userdata System.IntPtr
Résultat RESULT

unlock() public méthode

public unlock ( IntPtr ptr1, IntPtr ptr2, uint len1, uint len2 ) : RESULT
ptr1 IntPtr
ptr2 IntPtr
len1 uint
len2 uint
Résultat RESULT