HU/setSoundPan: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function hu}} {{Needs Checking|3D sounds are supposed to pan automatically deppending on the camera position, so how does this function work with 3D sounds...") |
No edit summary |
||
Line 3: | Line 3: | ||
{{Needs Checking|3D sounds are supposed to pan automatically deppending on the camera position, so how does this function work with 3D sounds? --[[User:AlexTMjugador|AlexTMjugador]] ([[User talk:AlexTMjugador|talk]]) 10:09, 25 May 2014 (UTC)}} | {{Needs Checking|3D sounds are supposed to pan automatically deppending on the camera position, so how does this function work with 3D sounds? --[[User:AlexTMjugador|AlexTMjugador]] ([[User talk:AlexTMjugador|talk]]) 10:09, 25 May 2014 (UTC)}} | ||
Ez a funkció a meghatározott hangelem panszintjének módosítására szolgál. | |||
==Syntax== | ==Syntax== |
Revision as of 09:49, 22 July 2018
This article needs checking. | |
Reason(s): 3D sounds are supposed to pan automatically deppending on the camera position, so how does this function work with 3D sounds? --AlexTMjugador (talk) 10:09, 25 May 2014 (UTC) |
Ez a funkció a meghatározott hangelem panszintjének módosítására szolgál.
Syntax
bool setSoundPan ( element theSound, float pan )
OOP Syntax Help! I don't understand this!
- Method: sound:setPan(...)
- Variable: .pan
- Counterpart: getSoundPan
Required Arguments
- theSound: The sound element which pan you want to modify.
- pan: A floating point number representing the desired pan level. Range is from -1.0 (left) to 1.0 (right)
Returns
Returns true if the sound element pan was successfully changed, false otherwise.
Example
Click to collapse [-]
Clientfunction playMusic () local left = playSFX("genrl", 75, 6, true) -- Play loading theme music local right = playSFX("genrl", 75, 7, true) setSoundPan(left, -1) -- switch the first music to left channel setSoundPan(right, 1) -- switch the second music to right channel end addCommandHandler("music", playMusic) -- add the command handler
See Also
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound