# IGModAudioChannel:SetPan

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPan
- **Çeviri tarihi:** 2025-09-08

```lua
IGModAudioChannel:SetPan( number pan )
```

## Açıklama

Sol ve sağ kanalların göreceli ses seviyesini ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **pan**: Sol ve sağ kanallar arasındaki göreceli ses seviyesi. `-1` sadece sol kanalda, `0` merkezde (varsayılan) ve `1` sadece sağ kanalda anlamına gelir. Kesirli değerler desteklenir.

### Örnek

Bir Half-Life 1 müziğini sol kanalda çalar.

```lua
sound.PlayFile( "sound/music/hl1_song20.mp3", "", function( channel )
	if ( IsValid( channel ) ) then
		channel:Play()
		channel:SetPan( -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/IGModAudioChannel:SetPan
