📄 soundplayer.cs
字号:
using System;
using System.Runtime.InteropServices;
namespace gowk.multimedia
{
/// <summary>
/// SoundPlayer 的摘要说明。
/// </summary>
public class SoundPlayer
{
[DllImport("Winmm.dll")]
static extern bool sndPlaySound(string wfname, int fuSound);
public SoundPlayer()
{
}
public void Play(string file)
{
bool b=sndPlaySound(file,1);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -