Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sound.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | static void rna_def_sound(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Caching", "The sound file is decoded and loaded into RAM"); | RNA_def_property_ui_text(prop, "Caching", "The sound file is decoded and loaded into RAM"); | ||||
| RNA_def_property_update(prop, 0, "rna_Sound_caching_update"); | RNA_def_property_update(prop, 0, "rna_Sound_caching_update"); | ||||
| prop = RNA_def_property(srna, "use_mono", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mono", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", SOUND_FLAGS_MONO); | RNA_def_property_boolean_sdna(prop, NULL, "flags", SOUND_FLAGS_MONO); | ||||
| RNA_def_property_ui_text(prop, "Mono", | RNA_def_property_ui_text(prop, "Mono", | ||||
| "If the file contains multiple audio channels they are rendered to a single one"); | "If the file contains multiple audio channels they are rendered to a single one"); | ||||
| RNA_def_property_update(prop, 0, "rna_Sound_update"); | RNA_def_property_update(prop, 0, "rna_Sound_update"); | ||||
| RNA_api_sound(srna); | |||||
| } | } | ||||
| void RNA_def_sound(BlenderRNA *brna) | void RNA_def_sound(BlenderRNA *brna) | ||||
| { | { | ||||
| rna_def_sound(brna); | rna_def_sound(brna); | ||||
| } | } | ||||
| #endif | #endif | ||||