Click here to Skip to main content
15,896,118 members
Articles / Web Development / HTML

How to change the pitch and tempo of a sound

Rate me:
Please Sign up or sign in to vote.
4.91/5 (34 votes)
24 Sep 2011LGPL36 min read 195.9K   14.9K   71  
This article shows how to change the pitch and tempo of a sound.
using System;
using System.Collections.Generic;
using System.Text;

namespace LumiSoft.Media.Wave.Native
{
    /// <summary>
    /// This class holds MMSYSERR errors.
    /// </summary>
    internal class MMSYSERR
    {
        /// <summary>
        /// Success.
        /// </summary>
        public const int NOERROR = 0;
        /// <summary>
        /// Unspecified error.
        /// </summary>
        public const int ERROR = 1;
        /// <summary>
        /// Device ID out of range.
        /// </summary>
        public const int BADDEVICEID = 2;
        /// <summary>
        /// Driver failed enable.
        /// </summary>
        public const int NOTENABLED = 3;
        /// <summary>
        /// Device already allocated.
        /// </summary>
        public const int ALLOCATED = 4;
        /// <summary>
        /// Device handle is invalid.
        /// </summary>
        public const int INVALHANDLE = 5;
        /// <summary>
        /// No device driver present.
        /// </summary>
        public const int NODRIVER = 6;
        /// <summary>
        /// Memory allocation error.
        /// </summary>
        public const int NOMEM = 7;
        /// <summary>
        /// Function isn't supported.
        /// </summary>
        public const int NOTSUPPORTED = 8;
        /// <summary>
        /// Error value out of range.
        /// </summary>
        public const int BADERRNUM = 9;
        /// <summary>
        /// Invalid flag passed.
        /// </summary>
        public const int INVALFLAG = 1;
        /// <summary>
        /// Invalid parameter passed.
        /// </summary>
        public const int INVALPARAM = 11;
        /// <summary>
        /// Handle being used simultaneously on another thread (eg callback).
        /// </summary>
        public const int HANDLEBUSY = 12;
        /// <summary>
        /// Specified alias not found.
        /// </summary>
        public const int INVALIDALIAS = 13;
        /// <summary>
        /// Bad registry database.
        /// </summary>
        public const int BADDB = 14;
        /// <summary>
        /// Registry key not found.
        /// </summary>
        public const int KEYNOTFOUND = 15;
        /// <summary>
        /// Registry read error.
        /// </summary>
        public const int READERROR = 16;
        /// <summary>
        /// Registry write error.
        /// </summary>
        public const int WRITEERROR = 17;
        /// <summary>
        /// Eegistry delete error.
        /// </summary>
        public const int DELETEERROR = 18;
        /// <summary>
        /// Registry value not found. 
        /// </summary>
        public const int VALNOTFOUND = 19;
        /// <summary>
        /// Driver does not call DriverCallback.
        /// </summary>
        public const int NODRIVERCB = 20;
        /// <summary>
        /// Last error in range.
        /// </summary>
        public const int LASTERROR = 20;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
China China
E-mail:calinyara@gmail.com

Comments and Discussions