-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.cs
45 lines (38 loc) · 1.47 KB
/
Configuration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pausify
{
class Configuration
{
//Time
public static int TICK_PERIOD = 250;
public static int MS_IN_SEC = 1000;
public static int TICKS_IN_SEC = MS_IN_SEC / TICK_PERIOD;
public static int TICKS_BEFORE_START = 2 * TICKS_IN_SEC;
public static int TICKS_BEFORE_UPDATE = TICKS_IN_SEC * 60 * 60;
//Queue
public static int SHORT_QUEUE_SIZE = (int)(2 * TICKS_IN_SEC);
public static int LONG_QUEUE_SIZE = (int)(4.5 * TICKS_IN_SEC);
public static int SPOTIFY_QUEUE_SIZE = 7 * TICKS_IN_SEC;
//State
public static int SPOTIFY_MUSIC_PLAYING = 1;
public static int OTHER_SOUND_PLAYING = 2;
//Sound
public static float SOUND_LOW_LIMIT = 0.00001f;
public static float SPOTIFY_SOUND_HIGH_LIMIT = 0.005f;
public static float OTHER_SOUND_HIGH_LIMIT = 0.008f;
public static float NORMALIZE_VALUE = 0.01f;
public static string appName = "Pausify";
public static uint WM_GETTEXT = 0x000D;
public const int MAX_WINDOWNAME_SIZE = 200;
//Config File
public static bool firsttime = false;
public static bool option_adblock = false;
public static bool option_autopause = false;
public static bool option_remember = false;
public static float spotify_volume = 100f;
}
}