Difference between revisions of "DopplerPreset Asset"

From COD Engine Research
Jump to: navigation, search
(Created page with "__NOTOC__ Category:Assets Category:Ghosts The dopplerpreset asset was added on Ghosts and appears to hold information pertaining to how sound changes from an object th...")
 
 
Line 2: Line 2:
 
[[Category:Assets]]
 
[[Category:Assets]]
 
[[Category:Ghosts]]
 
[[Category:Ghosts]]
The dopplerpreset asset was added on Ghosts and appears to hold information pertaining to how sound changes from an object that is either moving away from, or toward the listener. There is not much known about the asset itself, other than that it is very simple.
+
The dopplerpreset asset was added on Ghosts holds information pertaining to how sound changes from an object that is either moving away from, or toward the listener.
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
struct DopplerPreset
+
struct __declspec(align(8)) DopplerPreset
 
{
 
{
   const char * name;
+
   const char *p_name;
   char unknown[0x14];
+
   float speedOfSound;
 +
  float playerVelocityScale;
 +
  float minPitch;
 +
  float maxPitch;
 +
  float smoothing;
 
};
 
};
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 05:19, 22 December 2014

The dopplerpreset asset was added on Ghosts holds information pertaining to how sound changes from an object that is either moving away from, or toward the listener.

struct __declspec(align(8)) DopplerPreset
{
  const char *p_name;
  float speedOfSound;
  float playerVelocityScale;
  float minPitch;
  float maxPitch;
  float smoothing;
};