Admin 发表于 2021-03-28 04:24:33  

javascript实现蜂鸣器beep效果

a=new AudioContext() // browsers limit the number of concurrent audio contexts, so you better re-use'em

function beep(vol, freq, duration){
  v=a.createOscillator()
  u=a.createGain()
  v.connect(u)
  v.frequency.value=freq
  v.type="square"
  u.connect(a.destination)
  u.gain.value=vol*0.01
  v.start(a.currentTime)
  v.stop(a.currentTime+duration*0.001)
}

调用: beep(100, 520, 200)高频beep beep(999, 220, 300)低频boop beep(999, 210, 800); beep(999, 500, 800);长报警Cool noise 原文

Admin 发表于 2021-01-16 16:50:14  

游戏设置

me 发表于 2020-08-27 14:41:41  

Minecraft for Windows 10 Connecting to external server Unable to connect to world

To resolve the issue, you need to add the app in question to the Windows 10 loopback exempt list using PowerShell CheckNetIsolation LoopbackExempt command.

  • CheckNetIsolation LoopbackExempt -a -n=”Microsoft.MinecraftUWP_8wekyb3d8bbwe” – add app with the Package Name “Microsoft.MinecraftUWP_8wekyb3d8bbwe” to the loopbakc exempt list. To find Package Name, you can use the following PowerShell commands: Get-AppxPackage – List all UWP apps Get-AppxPackage | Select-String -Pattern “Minecraft” – List all apps that have “Minecraft” in their name.
  • CheckNetIsolation LoopbackExempt -d -n=”Microsoft.MinecraftUWP_8wekyb3d8bbwe” – delete app with the Package Name “Microsoft.MinecraftUWP_8wekyb3d8bbwe” from the loopbakc exempt list.
  • CheckNetIsolation LoopbackExempt -s – show all apps in the loopback exempt list.
  • CheckNetIsolation LoopbackExempt -c clear the loopback exempt list.

Admin 发表于 2020-08-09 15:53:52  

Admin 发表于 2020-08-08 15:31:53  

测试音乐播放

zephyr 发表于 2020-08-08 14:44:32  

可以支持 Markdown

zephyr 发表于 2020-08-08 14:14:41  

头像去http://cn.gravatar.com/设置

已经到底啦~

欢迎来到本站,请登陆。


输入一个时间来进行筛选

时间格式:2024-09-19 17:29:17


© 2024 顶留 | Powered by Pigeon

闽ICP备2023000358号-2