资源简介
smplayer-0.6.9源码,arm linux编译可用.
代码片段和文件信息
/* smplayer GUI front-end for mplayer.
Copyright (C) 2006-2008 Ricardo Villalba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
#define DIRECTSOUND_VERSION 5
#include
#include
#include
int sound_devices;
int display_devices;
BOOL CALLBACK DirectSoundEnum(LPGUID guid LPCSTR desc LPCSTR module LPVOID context)
{
printf(“%i: %s\n“ sound_devices desc);
sound_devices++;
return TRUE;
}
BOOL WINAPI DirectDrawEnum(GUID FAR *lpGUID LPSTR lpDriverDescription LPSTR lpDriverName LPVOID lpContext HMONITOR hm)
{
if (!lpGUID)
printf(“%i: %s\n“ display_devices “Primary Display Adapter“);
else
printf(“%i: %s\n“ display_devices lpDriverDescription);
display_devices++;
return TRUE;
}
int main(int argc char* argv[])
{
if (argc != 2){
printf(“Usage: dxlist.exe [-sound] [-s] [-display] [-d]\n“);
return 1;
}
if ((strcmp(argv[1]“-sound“)==0) || (strcmp(argv[1]“-s“)==0)) {
sound_devices = 0;
printf(“Sound devices:\n“);
if (DirectSoundEnumerateA(DirectSoundEnum NULL) != DS_OK){
printf(“Error: can‘t list the audio devices\n“);
}
}
else
if ((strcmp(argv[1]“-display“)==0) || (strcmp(argv[1]“-d“)==0)) {
display_devices = 0;
printf(“Display devices:\n“);
if (DirectDrawEnumerateExA(DirectDrawEnum NULL DDENUM_ATTACHEDSECONDARYDEVICES) != DS_OK) {
printf(“Error: can‘t list the display devices\n“);
}
}
else
printf(“Unknown option %s\n“ argv[1]);
return 0;
}
相关资源
- Scratch源码
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
- 编译原理课程设计:词法语法编译器
评论
共有 条评论