diff options
author | Joerg Mueller <nexyon@gmail.com> | 2009-11-22 15:10:45 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2009-11-22 15:10:45 +0300 |
commit | 8e877c1f9ff8d20037299a93dbf8489d2bc9eb98 (patch) | |
tree | 855d45a88388f5086a3c9a7df257d72df702b726 /source/blender/makesdna/DNA_anim_types.h | |
parent | 8b84cc2ab65790604722eeaba89a34095d2e7259 (diff) |
Added a first version of the Sound F-Curve Modifier, not really usable yet, but you can play around with it.
Diffstat (limited to 'source/blender/makesdna/DNA_anim_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_anim_types.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h index 195d68d63ff..c6330861fd2 100644 --- a/source/blender/makesdna/DNA_anim_types.h +++ b/source/blender/makesdna/DNA_anim_types.h @@ -36,6 +36,7 @@ extern "C" { #include "DNA_listBase.h" #include "DNA_action_types.h" #include "DNA_curve_types.h" +#include "DNA_sound_types.h" /* ************************************************ */ /* F-Curve DataTypes */ @@ -73,6 +74,7 @@ typedef enum eFModifier_Types { FMODIFIER_TYPE_FILTER, /* unimplemented - for applying: fft, high/low pass filters, etc. */ FMODIFIER_TYPE_PYTHON, FMODIFIER_TYPE_LIMITS, + FMODIFIER_TYPE_SOUND, /* NOTE: all new modifiers must be added above this line */ FMODIFIER_NUM_TYPES @@ -230,6 +232,25 @@ typedef enum eFMod_Noise_Modifications { FCM_NOISE_MODIF_MULTIPLY, /* Multiply the curve by noise */ } eFMod_Noise_Modifications; +/* sound modifier data */ +typedef struct FMod_Sound { + float strength; + float delay; + + short modification; + short pad[3]; + + bSound *sound; +} FMod_Sound; + +/* modification modes */ +typedef enum eFMod_Sound_Modifications { + FCM_SOUND_MODIF_REPLACE = 0, /* Modify existing curve, matching it's shape */ + FCM_SOUND_MODIF_ADD, /* Add amplitude to the curve */ + FCM_SOUND_MODIF_SUBTRACT, /* Subtract amplitude from the curve */ + FCM_SOUND_MODIF_MULTIPLY, /* Multiply the curve by amplitude */ +} eFMod_Sound_Modifications; + /* Drivers -------------------------------------- */ /* Driver Target |