Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sound.c
| Show First 20 Lines • Show All 812 Lines • ▼ Show 20 Lines | void BKE_sound_update_scene(Main *bmain, struct Scene *scene) | ||||
| Scene *sce_it; | Scene *sce_it; | ||||
| void *new_set = AUD_createSet(); | void *new_set = AUD_createSet(); | ||||
| void *handle; | void *handle; | ||||
| float quat[4]; | float quat[4]; | ||||
| /* cheap test to skip looping over all objects (no speakers is a common case) */ | /* cheap test to skip looping over all objects (no speakers is a common case) */ | ||||
| if (!BLI_listbase_is_empty(&bmain->speaker)) { | if (!BLI_listbase_is_empty(&bmain->speaker)) { | ||||
| for (SETLOOPER(scene, sce_it, base)) { | for (SETLOOPER(scene, NULL, sce_it, base)) { | ||||
| ob = base->object; | ob = base->object; | ||||
| if ((ob->type != OB_SPEAKER) || !ob->adt) { | if ((ob->type != OB_SPEAKER) || !ob->adt) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| for (track = ob->adt->nla_tracks.first; track; track = track->next) { | for (track = ob->adt->nla_tracks.first; track; track = track->next) { | ||||
| for (strip = track->strips.first; strip; strip = strip->next) { | for (strip = track->strips.first; strip; strip = strip->next) { | ||||
| if (strip->type != NLASTRIP_TYPE_SOUND) { | if (strip->type != NLASTRIP_TYPE_SOUND) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||