diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-24 14:15:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-24 14:15:38 +0400 |
commit | b5c3ffe9c7d381adb129769575efedd5fa81248d (patch) | |
tree | 811b5106d6ac1f6ff74419597e56b6e083440458 /source/blender/editors | |
parent | 5f677f995d204c378f7aad3de826b2e193276487 (diff) |
fix for building without audaspace
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sound/sound_ops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index 17c4dc37371..96049bc8606 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -362,6 +362,7 @@ static int sound_mixdown_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } +#ifdef WITH_AUDASPACE static EnumPropertyItem container_items[] = { #ifdef WITH_FFMPEG {AUD_CONTAINER_AC3, "AC3", 0, "ac3", "Dolby Digital ATRAC 3"}, @@ -374,7 +375,8 @@ static EnumPropertyItem container_items[] = { #endif {AUD_CONTAINER_OGG, "OGG", 0, "ogg", "Xiph.Org Ogg Container"}, {AUD_CONTAINER_WAV, "WAV", 0, "wav", "Waveform Audio File Format"}, - {0, NULL, 0, NULL, NULL}}; + {0, NULL, 0, NULL, NULL} +}; static const char *snd_ext_sound[] = { ".ac3", @@ -437,6 +439,8 @@ static int sound_mixdown_check(bContext *UNUSED(C), wmOperator *op) return FALSE; } +#endif // WITH_AUDASPACE + static int sound_mixdown_invoke(bContext *C, wmOperator *op, wmEvent *event) { if (RNA_struct_property_is_set(op->ptr, "filepath")) @@ -643,9 +647,9 @@ static void SOUND_OT_mixdown(wmOperatorType *ot) /* api callbacks */ ot->exec = sound_mixdown_exec; ot->invoke = sound_mixdown_invoke; - ot->check = sound_mixdown_check; #ifdef WITH_AUDASPACE + ot->check = sound_mixdown_check; ot->ui = sound_mixdown_draw; #endif /* flags */ |