CSoundPatch
From GMod Wiki
(Redirected from Csoundpatch)
A CSoundPatch object is very much like the ambient_generic entity; you initialize the Sound Patch with the CreateSound function, and then you can play the sound using CSoundPatch.Play. At any time, you can change the pitch or the volume of the sound currently playing by using CSoundPatch.ChangePitch and CSoundPatch.ChangeVolume. When you're ready to stop the sound, you can use the CSoundPatch.Stop method to stop the sound.
The nature of this object makes it well suited to controlling looping sounds.
Object Commands
CSoundPatch:__gc
CSoundPatch:__index
CSoundPatch:ChangePitch
CSoundPatch:ChangeVolume
CSoundPatch:FadeOut
CSoundPatch:IsPlaying
CSoundPatch:Play
CSoundPatch:PlayEx
CSoundPatch:SetSoundLevel
CSoundPatch:Stop