source: smplayer/trunk/dxlist/README.txt@ 99

Last change on this file since 99 was 99, checked in by Silvan Scherrer, 16 years ago

smplayer: 0.6.9 part7

File size: 1.9 KB
Line 
1dxlist is a small console application for Windows which can list the
2directsound devices and directdraw display devices. This info is then used
3by smplayer.
4
5Usage: just run dxlist.exe with the -d or -s switches. -d shows the display
6devices, -s the sound devices.
7
8Compiling: in order to compile it you need the directx headers
9(you can get a package here: http://www.videolan.org/vlc/dx7headers.tgz), and
10extract it in the directx folder. Then just compile it with the usual:
11
12qmake
13make
14
15Installation: dxlist.exe has to be installed on the same folder as smplayer.exe.
16
17Someone may be wondering... why don't you just simply call mplayer to get that
18info instead of writing this program?
19
20Yes, mplayer can display that info, but there are several inconveniences:
21
221) it's necessary to use the -v switch. That makes mplayer to be much more
23verbose, that could even have an impact on performace (at least that was
24a problem with old versions of Qt)
25
262) it's necessary to play a file. Yes, you can't get the info if you don't
27play a file. That's a problem, smplayer wouldn't be able to get the info until
28the user has at least played one file.
29
303) even worse, to get the info about the attached displays, you have to
31use the -adapter option, but how can you know what value to use for
32-adapter if you don't know yet the list of valid values?
33
34Because of those problems, I found easier to try to get that info using other
35ways. This program just outputs the required info, no need to play anything,
36smplayer can call it whenever it needs it.
37
38Finally, the reason to implement all this in a separate program and not inside
39smplayer itself (which would have been easier) is just simply to avoid it
40to depend on directx, and require everyone who want to compile it to install
41the directx headers. After all this (dxlist) program is optional, smplayer
42can work without it.
Note: See TracBrowser for help on using the repository browser.