set snd_soundradius 1200
// declare the channels we use
-seta snd_channel0extra1volume 1 "QuakeC controlled background music volume"
-seta snd_channel1extra1volume 1 "QuakeC controlled ambient sound volume"
+seta snd_channel8volume 1 "QuakeC controlled background music volume"
+seta snd_channel9volume 1 "QuakeC controlled ambient sound volume"
// loading screen
scr_loadingscreen_background 0
float CH_PAIN_SINGLE = 6; // only on players and csqc
float CH_PLAYER = 7; // only on players and entities
#else
-#define CH_INFO (0)
-#define CH_TRIGGER (3 | CHANFLAG_FORCEAUTO)
-#define CH_WEAPON_A (1 | CHANFLAG_FORCEAUTO)
-#define CH_WEAPON_SINGLE (1)
-#define CH_VOICE (2 | CHANFLAG_FORCEAUTO)
-#define CH_BGM_SINGLE (0 | CHAN_EXTRA1)
-#define CH_AMBIENT (1 | CHAN_EXTRA1 | CHANFLAG_FORCEAUTO)
-#define CH_TRIGGER_SINGLE (3)
-#define CH_SHOTS_SINGLE (4)
-#define CH_WEAPON_B (1 | CHANFLAG_FORCEAUTO)
-#define CH_PAIN (6 | CHANFLAG_FORCEAUTO)
-#define CH_PAIN_SINGLE (6)
-#define CH_PLAYER (7 | CHANFLAG_FORCEAUTO)
+// FIXME convert back to float .... =
+float CH_INFO = 0;
+float CH_TRIGGER = -3;
+float CH_WEAPON_A = -1;
+float CH_WEAPON_SINGLE = 1;
+float CH_VOICE = -2;
+float CH_BGM_SINGLE = 8;
+float CH_AMBIENT = -9;
+float CH_TRIGGER_SINGLE = 3;
+float CH_SHOTS_SINGLE = 4;
+float CH_WEAPON_B = -1;
+float CH_PAIN = -6;
+float CH_PAIN_SINGLE = 6;
+float CH_PLAYER = -7;
+#define sound(e,c,s,v,a) sound7(e,c,s,v,a,0,0)
#endif
float ATTN_NONE = 0;
me.TR(me);
me.TDempty(me, 0.2);
s = makeXonoticDecibelsSlider(-20, 0, 0.5, "bgmvolume");
- makeMulti(s, "snd_channel0extra1volume");
+ makeMulti(s, "snd_channel8volume");
me.TD(me, 1, 0.8, e = makeXonoticSliderCheckBox(-1000000, 1, s, _("Music:")));
me.TD(me, 1, 2, s);
setDependentStringNotEqual(e, "mastervolume", "0");
me.TR(me);
me.TDempty(me, 0.2);
s = makeXonoticDecibelsSlider(-20, 0, 0.5, "snd_staticvolume");
- makeMulti(s, "snd_channel1extra1volume");
+ makeMulti(s, "snd_channel9volume");
me.TD(me, 1, 0.8, e = makeXonoticSliderCheckBox(-1000000, 1, s, ZCTX(_("VOL^Ambient:"))));
me.TD(me, 1, 2, s);
setDependentStringNotEqual(e, "mastervolume", "0");
entno = num_for_edict(e);
idx = precache_sound_index(samp);
- chan = ((chan & 0x07) | ((chan & 0x1F0) / 2));
-
float sflags;
sflags = 0;
sflags |= SND_VOLUME;
if (atten != 64)
sflags |= SND_ATTENUATION;
- if (entno >= 8192 || chan > 7)
+ if (entno >= 8192 || chan < 0 || chan > 7)
sflags |= SND_LARGEENTITY;
if (idx >= 256)
sflags |= SND_LARGESOUND;