资源简介
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;
}
相关资源
- ATSHA204 开发源码
- Ceph源码分析
- 非常好的代码生成工具,
- 微信小程序开发源码仿网易云音乐
- 网狐6603版源码帮助说明文档
- unity 横版2D车辆控制源码.zip
- vxworks下61850 MMS库源码
- 任哲-嵌入式实时操作系统μCOS-II原理
- 儿童摄影网站源码
- USB转SPI上位机源码
- 发送TCP数据包源代码+设计报告
- 斗地主算法的设计与实现-FansUnion-Do
- 女鬼程序源码胆小者勿下
- 微信小程序 小游戏跳一跳源码
- 拼车网源码
- 挂机源码完整版
- ESP8266 post源码 post.zip
- ssh实现的科技项目申报(文档+源码
- 校友录全网站源码
- 仿www.toomics.xyz韩国漫画站源码
- qtribbon源码
- dwm1000 UWB 定位 测距 上位机源码
- andengine开发源码和API
- Qt实现的连连看游戏含源码
- delphi 邮件收发系统源码(仿FOXMAIL )
- swt/jface in action +中文版+英文版+源码
- unix v6和v7的源码
- SURF论文及源码
- 西门子PLC与PC通信与控制应用编程
- Flash 上传多张图片和裁剪图片源码
评论
共有 条评论