C#调用PC主板蜂鸣器小喇叭speaker发声beep(Win7_64位亲测可用)

上传者: gxzys | 上传时间: 2021-04-12 16:01:31 | 文件大小: 417KB | 文件类型: ZIP
C#调用PC主板蜂鸣器小喇叭speaker发声beep。 不是拷贝XP的beep.sys实现,使用的是InpOut库,32位及64位均可使用。 我自己加了音符频率表,内附一首生日歌,类似于20年前DOS开发一样,使用蜂鸣器播放音乐,其它歌曲请自己编写。 另附InpOut32的调用源代码,不仅仅是发声,还可以有更多功能。 有人说用不了,我试了一下,确实是 64位要进入InpOutBinaries_1501文件夹,再进win32运行InstallDriver才可以,以前没上传这个文件夹,抱歉。 2019.10.1

文件下载

资源详情

[{"title":"( 71 个子文件 417KB ) C#调用PC主板蜂鸣器小喇叭speaker发声beep(Win7_64位亲测可用)","children":[{"title":"PcSpeakerBeep","children":[{"title":"PcSpeakerBeep","children":[{"title":"Form1.cs <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 20.13KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csproj.user <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"PcSpeakerBeep.csproj.GenerateResource.Cache <span style='color:#111;'> 1012B </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csprojResolveAssemblyReference.cache <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"binfensoft.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"PcSpeakerBeep.exe <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.82KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csprojAssemblyReference.cache <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"binfensoft.Form1.resources <span style='color:#111;'> 9.99KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"PcBeep.cs <span style='color:#111;'> 6.56KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.csproj <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"PcSpeakerBeep.vshost.exe <span style='color:#111;'> 22.16KB </span>","children":null,"spread":false},{"title":"inpout32.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.exe <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"inpoutx64.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"PcSpeakerBeep.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"sound_speaker_48px_16762_easyicon.net.ico <span style='color:#111;'> 9.44KB </span>","children":null,"spread":false}],"spread":false},{"title":".vs","children":[{"title":"PcSpeakerBeep","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 34.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"InpOutBinaries_1501","children":[{"title":"Win32","children":[{"title":"inpout32.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"inpout32.h <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"InstallDriver.exe <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false},{"title":"inpout32.lib <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"ReadMe.txt <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"DLPortIO.txt <span style='color:#111;'> 561B </span>","children":null,"spread":false},{"title":"x64","children":[{"title":"inpoutx64.lib <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"inpout32.h <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"inpoutx64.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"license.txt <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"InpOut32.CSharp.Net","children":[{"title":"vssver2.scc <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.csproj.user <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"InpOut32.CSharp.Net","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"CSharpExample.cs <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"vssver2.scc <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"CSharpExample.Designer.cs <span style='color:#111;'> 8.36KB </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.csproj <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"CSharpExample.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"InpOut32.CSharp.Net.csproj.FileListAbsolute.txt <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.csproj.GenerateResource.Cache <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"InpOut32.Net.CSharpExample.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.exe <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"InpOut32.CSharp.Net.vshost.exe <span style='color:#111;'> 22.16KB </span>","children":null,"spread":false},{"title":"inpout32.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"inpoutx64.dll <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"InpOut32.CSharp.Net.exe <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"PcSpeakerBeep.sln <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zyp417339 :
    win7 64位确实能用,终于找到了
    2020-10-24
  • Jiedy :
    不错,能响~~ 哈哈
    2020-09-28
  • gundamjt8013 :
    不错,有借见,
    2020-03-25

免责申明

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