Exemplo n.º 1
0
        /// <summary>
        /// トラックを追加するコマンドを発行します.trackはClone()して渡さなくてもよい
        /// </summary>
        /// <param name="track"></param>
        /// <returns></returns>
        public static VsqCommand generateCommandAddTrack(VsqTrack track, VsqMixerEntry mixer, int position)
        {
            VsqCommand command = new VsqCommand();

            command.Type    = VsqCommandType.TRACK_ADD;
            command.Args    = new Object[3];
            command.Args[0] = track;
            command.Args[1] = mixer;
            command.Args[2] = position;
            return(command);
        }
Exemplo n.º 2
0
        /// <summary>
        /// このインスタンスをテキストファイルに出力します
        /// </summary>
        /// <param name="sw">出力対象</param>
        public void write(ITextWriter sw)
        {
            sw.writeLine("[Mixer]");
            sw.writeLine("MasterFeder=" + MasterFeder);
            sw.writeLine("MasterPanpot=" + MasterPanpot);
            sw.writeLine("MasterMute=" + MasterMute);
            sw.writeLine("OutputMode=" + OutputMode);
            int count = Slave.Count;

            sw.writeLine("Tracks=" + count);
            for (int i = 0; i < count; i++)
            {
                VsqMixerEntry item = Slave[i];
                sw.writeLine("Feder" + i + "=" + item.Feder);
                sw.writeLine("Panpot" + i + "=" + item.Panpot);
                sw.writeLine("Mute" + i + "=" + item.Mute);
                sw.writeLine("Solo" + i + "=" + item.Solo);
            }
        }
Exemplo n.º 3
0
        public Object clone()
        {
            VsqMixerEntry res = new VsqMixerEntry(Feder, Panpot, Mute, Solo);

            return(res);
        }