Etterna 0.74.4
Loading...
Searching...
No Matches
arch_default.h
1#ifndef ARCH_DEFAULT_H
2#define ARCH_DEFAULT_H
3
4/* Define the default driver sets. */
5#ifdef _WIN32
6#include "LoadingWindow/LoadingWindow_Win32.h"
7#include "LowLevelWindow/LowLevelWindow_Win32.h"
8#define DEFAULT_INPUT_DRIVER_LIST "DirectInput,Pump,Para"
9#define DEFAULT_MOVIE_DRIVER_LIST "FFMpeg,DShow,Null"
10#define DEFAULT_SOUND_DRIVER_LIST "WaveOut,DirectSound-sw,WDMKS,Null"
11
12#elif defined(__APPLE__)
13#include "LoadingWindow/LoadingWindow_MacOSX.h"
14#include "LowLevelWindow/LowLevelWindow_MacOSX.h"
15#define DEFAULT_INPUT_DRIVER_LIST "HID"
16#define DEFAULT_MOVIE_DRIVER_LIST "FFMpeg,Null"
17#define DEFAULT_SOUND_DRIVER_LIST "AudioUnit,Null"
18
19#elif defined(__unix__)
20#include "LowLevelWindow/LowLevelWindow_X11.h"
21
22#if defined(HAVE_GTK)
23#include "LoadingWindow/LoadingWindow_Gtk.h"
24#endif
25#if __unix__
26#define DEFAULT_INPUT_DRIVER_LIST "X11,LinuxEvent,LinuxJoystick"
27#else
28#define DEFAULT_INPUT_DRIVER_LIST "X11"
29#endif
30#define DEFAULT_MOVIE_DRIVER_LIST "FFMpeg,Null"
31// ALSA comes first, as the system may have OSS compat but we don't want to use
32// it if it's actually an ALSA wrapper.
33// Then try OSS before daemon drivers so we're going direct instead of
34// unwittingly starting a daemon.
35// JACK gives us an explicit option to NOT start a daemon, so try it third,
36// as PulseAudio will successfully Init() but not actually work if the
37// PulseAudio daemon has been suspended by/for jackd.
38#define DEFAULT_SOUND_DRIVER_LIST "ALSA-sw,OSS,JACK,Pulse,Null"
39#else
40#error Which arch?
41#endif
42
43/* All use these. */
44#include "LoadingWindow/LoadingWindow_Null.h"
45
46#endif