コード例 #1
0
 public Channel(int chunksize, string channelname, ChannelPriority priority, ChannelMessageTypes messagetype)
 {
     Chunksizes  = chunksize;
     Name        = channelname;
     Priority    = priority;
     MessageType = messagetype;
     outgoing    = new SocketMessage(chunksize);
 }
コード例 #2
0
 /// <summary>
 /// Creates and initializes a <see cref="ChannelMessage"/> from the specified parameters.
 /// </summary>
 /// <param name="type">A <see cref="ChannelMessageTypes"/> specifying the type of message.</param>
 /// <param name="channel">A <see cref="MidiChannels"/> specifying the MIDI channel associated with the message.</param>
 /// <param name="dataA">An <see cref="int"/> specifying the first data part of the message.</param>
 /// <param name="dataB">An <see cref="int"/> specifying the second data part of the message.</param>
 public ChannelMessage(ChannelMessageTypes type, MidiChannels channel, int dataA, int dataB) : base((int)type, dataA, dataB)
 {
     this.Channel = channel;
 }