资源简介
飞机大战 C# 微信 面向对象 工厂模式 功能齐全 详细注释

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.DirectX.DirectSound;
using System.Threading;
namespace PlayPlane_01
{
class DXPlay
{
private string musicPath;
Form1 form;
public DXPlay(Form1 formstring musicPath)
{
this.form = form;
this.musicPath = musicPath;
}
public void Play()
{
SecondaryBuffer secBuffer;//缓冲区对象
Device secDev;//设备对象
secDev = new Device();
secDev.SetCooperativeLevel(form CooperativeLevel.Normal);//设置设备协作级别
secBuffer = new SecondaryBuffer(musicPath secDev);//创建辅助缓冲区
secBuffer.Play(0 BufferPlayFlags.Default);//设置缓冲区为默认播放
}
delegate void DelegatePlay();
public void ThreadPlay()
{
Thread t = new Thread(new ThreadStart(CorssThreadPlay));
t.Start();
}
public void CorssThreadPlay()
{
if (form.InvokeRequired)
{
DelegatePlay dp = new DelegatePlay(CorssThreadPlay);
form.Invoke(dp);
}
else
{
SecondaryBuffer secBuffer;//缓冲区对象
Device secDev;//设备对象
secDev = new Device();
secDev.SetCooperativeLevel(form CooperativeLevel.Normal);//设置设备协作级别
secBuffer = new SecondaryBuffer(musicPath secDev);//创建辅助缓冲区
secBuffer.Play(0 BufferPlayFlags.Default);//设置缓冲区为默认播放
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1356 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Properties\AssemblyInfo.cs
文件 5612 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Properties\Resources.resx
文件 2876 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Properties\Resources.Designer.cs
文件 249 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Properties\Settings.settings
文件 1099 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Properties\Settings.Designer.cs
文件 16033 2013-11-07 20:47 PlayPlane_01\PlayPlane_01\Form1.cs
文件 1403 2013-11-07 15:57 PlayPlane_01\PlayPlane_01\Form1.Designer.cs
文件 493 2013-11-04 19:36 PlayPlane_01\PlayPlane_01\Program.cs
文件 4477 2013-11-07 20:08 PlayPlane_01\PlayPlane_01\PlayPlane_01.csproj
文件 490 2012-06-06 02:06 PlayPlane_01\PlayPlane_01\bin\Debug\PlayPlane_01.vshost.exe.manifest
文件 11608 2013-11-07 20:48 PlayPlane_01\PlayPlane_01\bin\Debug\PlayPlane_01.vshost.exe
文件 23552 2013-11-07 20:48 PlayPlane_01\PlayPlane_01\bin\Debug\PlayPlane_01.exe
文件 58880 2013-11-07 20:48 PlayPlane_01\PlayPlane_01\bin\Debug\PlayPlane_01.pdb
文件 72098 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\plane.png
文件 1462 2013-08-26 14:20 PlayPlane_01\PlayPlane_01\bin\Debug\resource\plane.xm
文件 9218 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\shoot.mp3
文件 25282 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\bg_01.jpg
文件 26800 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\bg_02.jpg
文件 11303 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\explosion.mp3
文件 3391 2013-08-23 11:37 PlayPlane_01\PlayPlane_01\bin\Debug\resource\font.fnt
文件 5622 2013-08-23 11:22 PlayPlane_01\PlayPlane_01\bin\Debug\resource\font_0.png
文件 6074 2013-08-26 11:10 PlayPlane_01\PlayPlane_01\bin\Debug\resource\icon36x36.png
文件 8111 2013-08-26 11:10 PlayPlane_01\PlayPlane_01\bin\Debug\resource\icon48x48.png
文件 12047 2013-08-26 11:10 PlayPlane_01\PlayPlane_01\bin\Debug\resource\icon72x72.png
文件 6191 2013-08-26 15:27 PlayPlane_01\PlayPlane_01\bin\Debug\resource\loading.gif
文件 55244 2013-11-05 22:45 PlayPlane_01\PlayPlane_01\bin\Debug\resource\explosion.wav
文件 32044 2013-11-05 22:45 PlayPlane_01\PlayPlane_01\bin\Debug\resource\shoot.wav
文件 25382 1995-06-29 13:25 PlayPlane_01\PlayPlane_01\bin\Debug\resource\BOMB5.WAV
文件 14124 1992-09-10 10:59 PlayPlane_01\PlayPlane_01\bin\Debug\resource\BOMB3.WAV
文件 178176 2005-03-18 16:23 PlayPlane_01\PlayPlane_01\bin\Debug\dll\Microsoft.DirectX.DirectSound.dll
............此处省略37个文件信息
- 上一篇:C#实现搜索出本机安装的AutoCAD
- 下一篇:ASP.NET 功能全教务管理系统
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
评论
共有 条评论