diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-02-08 02:41:17 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-02-08 02:41:17 +0300 |
commit | 9827a3e9eac70f68db6dc16d03016c51b7ece3f0 (patch) | |
tree | 8825b454008d3b97a64018884c179ea94874af44 /source/blender/makesdna | |
parent | 2f72b91a54faa7cfbdfd97eff608c8911df1d221 (diff) |
2.5 Audio:
- recode of the whole sequencer audio handling
- encode audio flag removed, instead you choose None as audio codec, added None for video codec too
- ffmpeg formats/codecs: enabled: theora, ogg, vorbis; added: matroska, flac (not working, who can fix?), mp3, wav
- sequencer wave drawing
- volume animation (now also working when mixing down to a file!)
- made sequencer strip position and length values unanimatable
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 5 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_sequence_types.h | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_sound_types.h | 25 |
3 files changed, 12 insertions, 22 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 63d3e764263..204af647b3a 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -758,7 +758,8 @@ typedef struct Scene { ListBase markers; ListBase transform_spaces; - ListBase sound_handles; + void *sound_scene; + void *sound_scene_handle; /* none of the dependancy graph vars is mean to be saved */ struct DagForest *theDag; @@ -1078,7 +1079,7 @@ typedef struct Scene { #define AUDIO_SYNC 2 #define AUDIO_SCRUB 4 -#define FFMPEG_MULTIPLEX_AUDIO 1 +#define FFMPEG_MULTIPLEX_AUDIO 1 /* deprecated, you can choose none as audiocodec now */ #define FFMPEG_AUTOSPLIT_OUTPUT 2 /* Paint.flags */ diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 0b45d62e347..c93625e9c27 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -161,7 +161,9 @@ typedef struct Sequence { ListBase seqbase; /* list of strips for metastrips */ struct bSound *sound; /* the linked "bSound" object */ - struct SoundHandle *sound_handle; + void *scene_sound; + float volume, pad; + float level, pan; /* level in dB (0=full), pan -1..1 */ int scenenr; /* for scene selection */ float strobe; diff --git a/source/blender/makesdna/DNA_sound_types.h b/source/blender/makesdna/DNA_sound_types.h index 55b48e4aacd..c0b8657618d 100644 --- a/source/blender/makesdna/DNA_sound_types.h +++ b/source/blender/makesdna/DNA_sound_types.h @@ -41,21 +41,6 @@ struct Ipo; struct PackedFile; struct SpaceLink; -// runtime only - no saving -typedef struct SoundHandle { - struct SoundHandle *next, *prev; - struct bSound *source; - void *handle; - int state; - int startframe; - int endframe; - int frameskip; - int mute; - int changed; - float volume; - float pad; -} SoundHandle; - typedef struct Sound3D { float min_gain; @@ -98,19 +83,21 @@ typedef struct bSound { float max_gain; float distance; int flags; + int pad; /** currently int type; struct bSound *child_sound;*/ /** - * Whether the sound has been changed and must be restarted if playing. + * The audaspace handle for cache. */ - int changed; + void *cache; /** - * The audaspace handle for cache. + * The audaspace handle that should actually be played back. + * Should be cache if cache != NULL; otherwise it's handle */ - void *cache; + void *playback_handle; /** XXX unused currently // SOUND_TYPE_LIMITER float start, end;*/ |