]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
export DP_SND_SOUND7_WIP2 (pitch shifting) to checkextension
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Sep 2011 15:37:28 +0000 (15:37 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Sep 2011 15:37:28 +0000 (15:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11367 d7cf8633-e32d-0410-b094-e92efae38249

dpdefs/dpextensions.qc
svvm_cmds.c

index 91f5ee23d77bbf5278919618dc20daf4df2c7bd8..889e2839074859951e11d66457fdb50d279938f2 100644 (file)
@@ -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
index 310af6d8b21cf05d3b7b5b691bcc7d79764b7c5f..2e105d933b8c8600f1c180728d3ba44b603a9eef 100644 (file)
@@ -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 "