用c#写的录音程序源码

上传者: jallymn | 上传时间: 2023-09-10 20:39:26 | 文件大小: 576KB | 文件类型: RAR
一款很不错的录音程序,附带源代码,自行编译: 如遇到内存不能读写错误(103行),请把编译 CPU Type 从“Any CPU”改为“x86”即可。 部分代码: public const string WaveAudio = "waveaudio"; public const uint MM_MCINOTIFY = 0x3B9; public const uint MCI_NOTIFY_SUCCESSFUL = 0x0001; public const uint MCI_NOTIFY_SUPERSEDED = 0x0002; public const uint MCI_NOTIFY_ABORTED = 0x0004; public const uint MCI_NOTIFY_FAILURE = 0x0008; public const uint MCI_OPEN = 0x0803; public const uint MCI_CLOSE = 0x0804; public const uint MCI_PLAY = 0x0806; public const uint MCI_SEEK = 0x0807; public const uint MCI_STOP = 0x0808; public const uint MCI_PAUSE = 0x0809; public const uint MCI_RECORD = 0x080F; public const uint MCI_RESUME = 0x0855; public const uint MCI_SAVE = 0x0813; public const uint MCI_LOAD = 0x0850; public const uint MCI_STATUS = 0x0814; public const uint MCI_SAVE_FILE = 0x00000100; public const uint MCI_OPEN_ELEMENT = 0x00000200; public const uint MCI_OPEN_TYPE = 0x00002000; public const uint MCI_LOAD_FILE = 0x00000100; public const uint MCI_STATUS_POSITION = 0x00000002; public const uint MCI_STATUS_LENGTH = 0x00000001; public const uint MCI_STATUS_ITEM = 0x00000100; public const uint MCI_NOTIFY = 0x00000001; public const uint MCI_WAIT = 0x00000002; public const uint MCI_FROM = 0x00000004; public const uint MCI_TO = 0x00000008; // Structures [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_OPEN_PARMS { public IntPtr dwCallback; public uint wDeviceID; public IntPtr lpstrDeviceType; public IntPtr lpstrElementName; public IntPtr lpstrAlias; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_RECORD_PARMS { public IntPtr dwCallback; public uint dwFrom; public uint dwTo; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_PLAY_PARMS { public IntPtr dwCallback; public uint dwFrom; public uint dwTo; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_GENERIC_PARMS { public IntPtr dwCallback; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_SEEK_PARMS { public IntPtr dwCallback; public uint dwTo; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_SAVE_PARMS { public IntPtr dwCallback; public IntPtr lpfilename; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct MCI_STATUS_PARMS { public IntPtr dwCallback; public uint dwReturn; public uint dwItem; public uint dwTrack; } ; // Functions [DllImport("winmm.dll", CharSet = CharSet.Ansi, BestFitMapping = true, ThrowOnUnmappableChar = true)] [return: MarshalAs(UnmanagedType.U4)] public static extern uint mciSendCommand( uint mciId, uint uMsg, uint dwParam1, IntPtr dwParam2); [DllImport("winmm.dll", CharSet = CharSet.Ansi, BestFitMapping = true, ThrowOnUnmappableChar = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool mciGetErrorString( uint mcierr, [MarshalAs(UnmanagedType.LPStr)] System.Text.StringBuilder pszText, uint cchText); } }

文件下载

资源详情

[{"title":"( 101 个子文件 576KB ) 用c#写的录音程序源码","children":[{"title":"SaveHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"StopHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"DeleteHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"DeleteHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PlayHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PauseHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"StopHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PlayHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SaveHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"RecordHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PauseRecorderHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PauseHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PauseRecorderHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"RecordHS.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.66KB </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.GenerateResource.Cache <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"MainForm.Designer.cs <span style='color:#111;'> 12.62KB </span>","children":null,"spread":false},{"title":"MainForm.Designer.cs <span style='color:#111;'> 12.55KB </span>","children":null,"spread":false},{"title":"SndRec.cs <span style='color:#111;'> 11.73KB </span>","children":null,"spread":false},{"title":"SndRec.cs <span style='color:#111;'> 11.73KB </span>","children":null,"spread":false},{"title":"MainForm.cs <span style='color:#111;'> 9.86KB </span>","children":null,"spread":false},{"title":"MainForm.cs <span style='color:#111;'> 9.86KB </span>","children":null,"spread":false},{"title":"SndPlay.cs <span style='color:#111;'> 8.96KB </span>","children":null,"spread":false},{"title":"SndPlay.cs <span style='color:#111;'> 8.96KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"SafeNativeMethods.cs <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"SafeNativeMethods.cs <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"HelperMethods.cs <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"HelperMethods.cs <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"SimpleRec.csproj <span style='color:#111;'> 8.63KB </span>","children":null,"spread":false},{"title":"SimpleRec.csproj <span style='color:#111;'> 5.84KB </span>","children":null,"spread":false},{"title":"UpgradeReport.css <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.exe <span style='color:#111;'> 130.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.exe <span style='color:#111;'> 130.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.exe <span style='color:#111;'> 130.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.exe <span style='color:#111;'> 130.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.exe <span style='color:#111;'> 128.00KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.vshost.exe <span style='color:#111;'> 11.34KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.vshost.exe <span style='color:#111;'> 11.34KB </span>","children":null,"spread":false},{"title":"UpgradeReport_Plus.gif <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"UpgradeReport_Minus.gif <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"record.ico <span style='color:#111;'> 90.41KB </span>","children":null,"spread":false},{"title":"record.ico <span style='color:#111;'> 90.41KB </span>","children":null,"spread":false},{"title":"app.manifest <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"app.manifest <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.vshost.exe.manifest <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"SimpleRec.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 73.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 73.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 69.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 69.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 59.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.pdb <span style='color:#111;'> 59.50KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.Properties.Resources.resources <span style='color:#111;'> 9.38KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.Properties.Resources.resources <span style='color:#111;'> 9.38KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.Properties.Resources.resources <span style='color:#111;'> 9.38KB </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.MainForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.MainForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Geming.SimpleRec.MainForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 8.03KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 8.03KB </span>","children":null,"spread":false},{"title":"MainForm.resx <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"MainForm.resx <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Solution1.sln <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Solution1.suo <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"ResGen.read.1.tlog <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"ResGen.read.1.tlog <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"ResGen.write.1.tlog <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"ResGen.write.1.tlog <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.FileListAbsolute.txt <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.FileListAbsolute.txt <span style='color:#111;'> 706B </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.user <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"SimpleRec.csproj.user <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"12192012-101641-000016.wav <span style='color:#111;'> 181.06KB </span>","children":null,"spread":false},{"title":"12192012-104247-000008.wav <span style='color:#111;'> 95.86KB </span>","children":null,"spread":false},{"title":"12192012-104222-000007.wav <span style='color:#111;'> 79.01KB </span>","children":null,"spread":false},{"title":"12192012-104325-000006.wav <span style='color:#111;'> 65.45KB </span>","children":null,"spread":false},{"title":"12192012-101932-000006.wav <span style='color:#111;'> 65.12KB </span>","children":null,"spread":false},{"title":"12192012-104343-000005.wav <span style='color:#111;'> 64.36KB </span>","children":null,"spread":false},{"title":"12192012-104306-000005.wav <span style='color:#111;'> 64.03KB </span>","children":null,"spread":false},{"title":"12192012-101713-000005.wav <span style='color:#111;'> 63.15KB </span>","children":null,"spread":false},{"title":"12192012-101908-000005.wav <span style='color:#111;'> 59.76KB </span>","children":null,"spread":false},{"title":"12192012-102604-000003.wav <span style='color:#111;'> 38.76KB </span>","children":null,"spread":false},{"title":"12192012-102132-000002.wav <span style='color:#111;'> 29.25KB </span>","children":null,"spread":false},{"title":"UpgradeLog.XML <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明