Пример #1
0
        /// <summary>
        /// Initializes a new instance of the AudioContainer class.
        /// </summary>
        /// <param name="type">Audio container type</param>
        public AudioContainer(AudioContainerType type)
        {
            this.ContainerType = type;

            if (type.Equals(AudioContainerType.WAV))
            {
                this.maxHeaderSize = 5000;
            }
            else if (type.Equals(AudioContainerType.RAW))
            {
                this.maxHeaderSize = 0;
            }
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the AudioContainer class.
        /// </summary>
        /// <param name="type">Audio container type</param>
        public AudioContainer(AudioContainerType type)
        {
            ContainerType = type;

            switch (type)
            {
            case AudioContainerType.Wav:
                MaxHeaderSize = 5000;
                break;

            case AudioContainerType.Raw:
                MaxHeaderSize = 0;
                break;
            }
        }