软件添加背景音乐
来源:互联网 发布:tango软件好不好 编辑:程序博客网 时间:2024/05/23 16:36
using System.Runtime.InteropServices;
public static uint SND_ASYNC = 0x0001; // play asynchronously
public static uint SND_FILENAME = 0x00020000; // name is file name
[DllImport("winmm.dll")]
public static extern uint mciSendString(string lpstrCommand,
string lpstrReturnString, uint uReturnLength, uint hWndCallback);
mciSendString(@"close temp_alias", null, 0, 0);
mciSendString(@"open ""E:/音乐/完美生活.mp3"" alias temp_alias",
null, 0, 0);
mciSendString("play temp_alias", null, 0, 0); // 重复播放用"play temp_alias repea
public static uint SND_ASYNC = 0x0001; // play asynchronously
public static uint SND_FILENAME = 0x00020000; // name is file name
[DllImport("winmm.dll")]
public static extern uint mciSendString(string lpstrCommand,
string lpstrReturnString, uint uReturnLength, uint hWndCallback);
mciSendString(@"close temp_alias", null, 0, 0);
mciSendString(@"open ""E:/音乐/完美生活.mp3"" alias temp_alias",
null, 0, 0);
mciSendString("play temp_alias", null, 0, 0); // 重复播放用"play temp_alias repea
- 软件添加背景音乐
- VC小菜之给软件添加背景音乐
- 添加背景音乐
- 添加背景音乐
- 添加背景音乐
- 软件背景音乐
- winform窗体添加背景音乐
- 为文件夹添加背景音乐
- 给网页添加背景音乐
- 给网页添加背景音乐
- 添加背景和背景音乐
- 18-添加背景音乐
- Html:网页添加背景音乐
- 网页添加背景音乐
- java 添加背景音乐
- MFC应用程序添加背景音乐
- Android添加背景音乐
- Java添加背景音乐
- 数据排序
- 元旦寄语-to me
- 个人对Linux下的QQ聊天工具的总结
- 计时和倒计时
- C#播放器
- 软件添加背景音乐
- Pku acm 1080 Humman Gene Function 动态规划题目解题报告(八)
- dlmalloc源码剖析之:mALLOc
- Swing之JTable的详细介绍--基础篇
- 多网卡发送数据包
- Linux路由表的结构与算法分析
- socket编程原理
- 修改matlab的默认目录
- JavaScript脚本执行的多线程问题