DopplerPreset Asset: Difference between revisions
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..." |
No edit summary |
||
| Line 2: | Line 2: | ||
[[Category:Assets]] | [[Category:Assets]] | ||
[[Category:Ghosts]] | [[Category:Ghosts]] | ||
The dopplerpreset asset was added on Ghosts | 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 * | const char *p_name; | ||
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;
};