Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Perez <pistolario>2022-05-19 21:58:55 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-05-19 22:05:23 +0300
commit89106a695afbba3d94b70645b4caaa22c2b58bc3 (patch)
treee9a57372a31e2a17c9b5ff2399d58b2c991b0909 /source/blender/makesdna/DNA_sound_types.h
parent9e9895b055d490b0793bc7c5662f50abafce9a24 (diff)
VSE: Display sound sample rate and channels
Display information about sound media in "Source" category in side panel similar to movie resolution and framerate. The specs are stored in the `Sequence` struct, and are extracted at the moment of struct creation. If the "source file" is changed, the specs change also. Reviewed By: ISS Differential Revision: https://developer.blender.org/D14565
Diffstat (limited to 'source/blender/makesdna/DNA_sound_types.h')
-rw-r--r--source/blender/makesdna/DNA_sound_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sound_types.h b/source/blender/makesdna/DNA_sound_types.h
index df59dd84662..ba926f0f4fa 100644
--- a/source/blender/makesdna/DNA_sound_types.h
+++ b/source/blender/makesdna/DNA_sound_types.h
@@ -77,6 +77,12 @@ typedef struct bSound {
void *spinlock;
/* XXX unused currently (SOUND_TYPE_LIMITER) */
/* float start, end; */
+
+ /* Description of Audio channels, as of eSoundChannels*/
+ int audio_channels;
+
+ int samplerate;
+
} bSound;
/* XXX unused currently */