Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AudioTrack"/> class.
        /// </summary>
        /// <param name="channelMap">A <see cref="ChannelMap"/> that specifies the arrangement and
        /// quantity of audio channels in the new <see cref="AudioTrack"/>.</param>
        /// <remarks>
        /// The channel count of the audio track is set to the count of the channel map.
        /// </remarks>
        public AudioTrack(ChannelMap channelMap)
        {
            Contract.Requires(channelMap != null);

            this.channelMap = channelMap;
            this.channels = new AudioChannel[channelMap.ChannelCount];
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AudioTrack"/> class.
        /// </summary>
        /// <param name="channelMap">A <see cref="ChannelMap"/> that specifies the arrangement and
        /// quantity of audio channels in the new <see cref="AudioTrack"/>.</param>
        /// <remarks>
        /// The channel count of the audio track is set to the count of the channel map.
        /// </remarks>
        public AudioTrack(ChannelMap channelMap)
        {
            Contract.Requires(channelMap != null);

            this.channelMap = channelMap;
            this.channels   = new AudioChannel[channelMap.ChannelCount];
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AudioTrack"/> class.
        /// </summary>
        /// <param name="channels">The number of audio channels in the new <see cref="AudioTrack"/>.</param>
        public AudioTrack(int channels)
        {
            Contract.Requires(channels > 0);

            this.channels = new AudioChannel[channels];
            this.channelMap = new ChannelMap(channels);
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AudioTrack"/> class.
        /// </summary>
        /// <param name="channels">The number of audio channels in the new <see cref="AudioTrack"/>.</param>
        public AudioTrack(int channels)
        {
            Contract.Requires(channels > 0);

            this.channels   = new AudioChannel[channels];
            this.channelMap = new ChannelMap(channels);
        }