Пример #1
0
        public static ActionSound Create(bool indirect, Sound Sound)
        {
            ActionSound sound1 = ActionSound.Create(indirect);

            sound1.SoundObj = Sound;
            return(sound1);
        }
Пример #2
0
        public static ActionSound Create(Sound Sound)
        {
            ActionSound sound1 = ActionSound.Create(true);

            sound1.SoundObj = Sound;
            return(sound1);
        }
Пример #3
0
        public static ActionSound Create(bool indirect, Sound Sound, double volume, bool sync, bool repeat, bool mix)
        {
            ActionSound sound1 = ActionSound.Create(indirect);

            sound1.SoundObj    = Sound;
            sound1.Volume      = volume;
            sound1.Synchronous = sync;
            sound1.Repeat      = repeat;
            sound1.Mix         = mix;
            return(sound1);
        }
Пример #4
0
        private static ActionSound Create(bool indirect)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["S"] = Library.CreateName("Sound");
            ActionSound sound1 = (Resources.Get(dict1, typeof(ActionSound)) as ActionSound);

            if (indirect)
            {
                Library.CreateIndirect(dict1);
            }
            return(sound1);
        }