# Sound

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Global.Sound
- **Çeviri tarihi:** 2025-09-08

```lua
string Sound( string soundPath )
```

## Açıklama

[util.PrecacheSound](https://gmod.tr/wiki/util.PrecacheSound) fonksiyonunu çalıştırır ve dizeyi döndürür.

> **HATA:** [util.PrecacheSound](https://gmod.tr/wiki/util.PrecacheSound) hiçbir şey yapmaz, dolayısıyla bu fonksiyon da hiçbir şey yapmaz.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **soundPath**: Ön belleğe alınacak ses yolu.

## Döndürülenler

1. [string](https://gmod.tr/wiki/string): İlk argüman olarak geçirilen dize.

### Örnek

[entities/sent_ball.lua](https://github.com/Facepunch/garrysmod/blob/c4a74bebe3113b01aee85501c297530fb8fdfa81/garrysmod/lua/entities/sent_ball.lua#L98-L121) dosyasından.

```lua
local BounceSound = Sound( "garrysmod/balloon_pop_cute.wav" )

function ENT:PhysicsCollide( data, physobj )

	-- Sekme sırasında ses çal
	if ( data.Speed > 60 && data.DeltaTime > 0.2 ) then

		local pitch = 32 + 128 - math.Clamp( self:GetBallSize(), self.MinSize, self.MaxSize )
		sound.Play( BounceSound, self:GetPos(), 75, math.random( pitch - 10, pitch + 10 ), math.Clamp( data.Speed / 150, 0, 1 ) )

	end

end
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Global.Sound
