• 大小: 0.51M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  录音  麦克风  

资源简介

需要安装DirectX Runtime Jun 2010

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Runtime.InteropServices;


namespace record
{
    class playwav
    {
        public static void Play(string strFileName)
        {
            //调用PlaySound方法播放音乐  
            Helpers.PlaySound(strFileName IntPtr.Zero Helpers.PlaySoundFlags.SND_ASYNC);
        }
    }
    ///    
    ///  用于播放音乐  
    ///  
    
    internal class Helpers
    {
        [Flags]
        public enum PlaySoundFlags : int
        {
            SND_SYNC = 0x0000    /*  play  synchronously  (default)  */  //同步  
            SND_ASYNC = 0x0001    /*  play  asynchronously  */  //异步  
            SND_NODEFAULT = 0x0002    /*  sile

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-03-27 08:52  record\
     文件          40  2008-04-10 13:07  record\bangzhu.txt
     文件         214  2008-03-17 10:39  record\mda.reg
     目录           0  2016-07-26 23:36  record\record\
     目录           0  2009-03-27 08:52  record\record\record\
     文件        1456  2016-07-26 23:41  record\record\record.sln
     文件       18432  2008-04-08 08:04  record\record\record.suo
     文件       55296  2016-07-26 23:54  record\record\record.v12.suo
     目录           0  2009-03-27 08:52  record\record\record\bin\
     目录           0  2009-03-27 08:52  record\record\record\bin\Debug\
     文件      178176  2005-03-18 16:23  record\record\record\bin\Debug\Microsoft.DirectX.DirectSound.dll
     文件      348085  2006-03-07 22:46  record\record\record\bin\Debug\Microsoft.DirectX.DirectSound.xml
     文件      223232  2005-03-18 16:23  record\record\record\bin\Debug\Microsoft.DirectX.dll
     文件      265390  2006-03-07 22:46  record\record\record\bin\Debug\Microsoft.DirectX.xml
     文件           0  2008-03-13 16:19  record\record\record\bin\Debug\rec.wav
     文件       20992  2016-07-26 23:50  record\record\record\bin\Debug\record.dll
     文件       48640  2016-07-26 23:50  record\record\record\bin\Debug\record.pdb
     目录           0  2009-03-27 08:52  record\record\record\bin\mchinese\
     文件       24044  2008-03-13 16:00  record\record\record\bin\mchinese\rec.wav
     目录           0  2009-03-27 08:52  record\record\record\obj\
     目录           0  2016-07-26 23:50  record\record\record\obj\Debug\
     文件         791  2016-07-26 23:39  record\record\record\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6909  2016-07-26 23:35  record\record\record\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        1483  2016-07-26 23:50  record\record\record\obj\Debug\record.csproj.FileListAbsolute.txt
     文件         950  2016-07-26 23:50  record\record\record\obj\Debug\record.csproj.GenerateResource.Cache
     文件       10457  2016-07-26 23:35  record\record\record\obj\Debug\record.csprojResolveAssemblyReference.cache
     文件       20992  2016-07-26 23:50  record\record\record\obj\Debug\record.dll
     文件       48640  2016-07-26 23:50  record\record\record\obj\Debug\record.pdb
     文件        4647  2016-07-26 23:50  record\record\record\obj\Debug\record.Properties.Resources.resources
     文件         180  2016-07-26 23:50  record\record\record\obj\Debug\record.record.resources
     文件        7967  2008-04-08 07:44  record\record\record\obj\Debug\ResolveAssemblyReference.cache
............此处省略58个文件信息

评论

共有 条评论