Ejemplo n.º 1
0
        internal ProtoBuf_PsaiCoreSoundtrack CreateProtoBuf(PsaiProject parentProject)
        {
            ProtoBuf_PsaiCoreSoundtrack pbSoundtrack = new ProtoBuf_PsaiCoreSoundtrack();

            pbSoundtrack.audioformat = AudioFormat;

            foreach (Theme theme in Themes)
                pbSoundtrack.themes.Add(theme.CreateProtoBuf());

            foreach (Segment segment in Segments)
                pbSoundtrack.snippets.Add(segment.CreateProtoBuf(parentProject));

            return pbSoundtrack;
        }
Ejemplo n.º 2
0
        internal ProtoBuf_PsaiCoreSoundtrack CreateProtoBuf(PsaiProject parentProject)
        {
            ProtoBuf_PsaiCoreSoundtrack pbSoundtrack = new ProtoBuf_PsaiCoreSoundtrack();

            pbSoundtrack.audioformat = AudioFormat;

            foreach (Theme theme in Themes)
            {
                pbSoundtrack.themes.Add(theme.CreateProtoBuf());
            }

            foreach (Segment segment in Segments)
            {
                pbSoundtrack.snippets.Add(segment.CreateProtoBuf(parentProject));
            }

            return(pbSoundtrack);
        }