From: divverent Date: Sat, 24 Sep 2011 15:37:28 +0000 (+0000) Subject: export DP_SND_SOUND7_WIP2 (pitch shifting) to checkextension X-Git-Tag: xonotic-v0.6.0~163^2~185 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=69c7e4df933cc532b149b38bf1c00be6ab64a6a2 export DP_SND_SOUND7_WIP2 (pitch shifting) to checkextension git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11367 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 91f5ee23..889e2839 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -1215,6 +1215,7 @@ float(string name, string value) registercvar = #93; //Note: also plays .ogg with DP_SND_OGGVORBIS extension. //DP_SND_SOUND7_WIP1 +//DP_SND_SOUND7_WIP2 //idea: divVerent //darkplaces implementation: divVerent //builtin definitions: @@ -1225,8 +1226,9 @@ float SOUNDFLAG_RELIABLE = 1; //extensions to sound(): //- channel may be in the range from -128 to 127; channels -128 to 0 are "auto", // i.e. support multiple sounds at once, but cannot be stopped/restarted -//- a speed parameter has been reserved for later addition of pitch shifting. -// it MUST be set to 0 for now, meaning "no pitch change" +//- a value 0 in the speed parameter means no change; otherwise, it is a +// percentage of playback speed ("pitch shifting"). 100 is normal pitch, 50 is +// half speed, 200 is double speed, etc. (DP_SND_SOUND7_WIP2) //- the flag SOUNDFLAG_RELIABLE can be specified, which makes the sound send // to MSG_ALL (reliable) instead of MSG_BROADCAST (unreliable, default); // similarily, SOUNDFLAG_RELIABLE_TO_ONE sends to MSG_ONE diff --git a/svvm_cmds.c b/svvm_cmds.c index 310af6d8..2e105d93 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -143,6 +143,7 @@ const char *vm_sv_extensions = "DP_SND_DIRECTIONLESSATTNNONE " "DP_SND_FAKETRACKS " "DP_SND_SOUND7_WIP1 " +"DP_SND_SOUND7_WIP2 " "DP_SND_OGGVORBIS " "DP_SND_SETPARAMS " "DP_SND_STEREOWAV "