查下API里录音的,函数,调用下
估计成吧

解决方案 »

  1.   

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Media;namespace GCSoundPlayer
    {
        public class Player
        {
            private string _wavPath;
            private SoundPlayer _currentPlayer;        public string WavPath
            {
                get
                {
                    return _wavPath;
                }
                set
                {
                    _wavPath = value;
                }
            }        public SoundPlayer CurrentPlayer
            {
                get
                {
                    return _currentPlayer;
                }
                set
                {
                    _currentPlayer = value;
                }
            }        public void Start()
            {            _currentPlayer = new SoundPlayer(_wavPath);
                _currentPlayer.LoadAsync();
                if (_currentPlayer.IsLoadCompleted == true)
                    _currentPlayer.Play();
                else
                    throw new Exception("声音未加载完毕!");
            }        public void Stop()
            {
                if (_currentPlayer != null)
                {
                    _currentPlayer.Stop();
                }
            }        public void Suspend()
            {
                if (_currentPlayer != null)
                {            }
            }        public void ChangeSound(int advance)
            {
                throw new System.NotImplementedException();
            }        public void Close()
            {
                if (_currentPlayer != null)
                {
                    _currentPlayer = null;
                }
            }
        }
    }有现成的。