|
SoundPan | ||
SoundPan SoundIndex, PanningValue | ||
Parameters: SoundIndex = The Index identifier of sound you wish the change the volume of PanningValue = The panning of this sound. (-255 to 255) |
||
Returns: NONE | ||
SoundPan will set the play back panning of this sound. Panning lets you control from what direction a sound is heard. So sound can be played directly in front (center) or off the either side (left or right), even pan from one side to another. By default sounds are panned to be centered (panning value of zero), so if your computer speakers are directly in front of you, then the sound should appear to be evenly spread between them. Like wise when a sound is panned to the LEFT (Pan value of -255) or Right (255) it appear to be coming some that side/speaker Sound pan values range between -255 and 255. [ Panning Values ]
FACTS: * SoundPan values range between -255(left) to 255(right). * Changing SoundPan while a sound is playing, will alter the play back panning also. Mini Tutorial: This example loads a sound file as sound #1, sets it to loop and plays it. Then during the main Do/Loop section of the code, it is constantly adjusting the sounds play back panning, to shift the looping sound from Left to Right.
|
Related Info: | GetSoundFreq | GetSoundMasterVolume | GetSoundPan | GetSoundPlaying | GetSoundQuantity | GetSoundVolume | PlaySound | SoundFreq : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |