~waver-developers/waver/trunk

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
    This file is part of Waver
    Copyright (C) 2021 Peter Papp
    Please visit https://launchpad.net/waver for details
*/


#ifndef GLOBALS_H
#define GLOBALS_H

#include <QAudioBuffer>
#include <QByteArray>
#include <QVector>

static const QString DEFAULT_SHUFFLE_OPERATOR           = "or";
static const int     DEFAULT_SHUFFLE_COUNT              = 5;
static const int     DEFAULT_RANDOM_LISTS_COUNT         = 11;
static const int     DEFAULT_SHUFFLE_DELAY_SECONDS      = 10;
static const int     DEFAULT_SHUFFLE_FAVORITE_FREQUENCY = 4;
static const bool    DEFAULT_SHUFFLE_AUTOSTART          = true;

static const bool    DEFAULT_HIDE_DOT_PLAYLIST = true;
static const QString DEFAULT_FADE_TAGS         = "live,medley,nonstop";
static const QString DEFAULT_CROSSFADE_TAGS    = "live";

static const int    DEFAULT_MAX_PEAK_FPS  = 25;
static const bool   DEFAULT_PEAK_DELAY_ON = false;
static const qint64 DEFAULT_PEAK_DELAY_MS = 333;

static const bool   DEFAULT_EQON   = true;
static const double DEFAULT_PREAMP = 0.0;
static const double DEFAULT_EQ1    = 6.0;
static const double DEFAULT_EQ2    = 3.0;
static const double DEFAULT_EQ3    = 1.5;
static const double DEFAULT_EQ4    = 0.0;
static const double DEFAULT_EQ5    = -1.5;
static const double DEFAULT_EQ6    = 0.0;
static const double DEFAULT_EQ7    = 3.0;
static const double DEFAULT_EQ8    = 6.0;
static const double DEFAULT_EQ9    = 9.0;
static const double DEFAULT_EQ10   = 12.0;


struct TimedChunk {
    QByteArray *chunkPointer;
    qint64      startMicroseconds;
};

typedef QVector<QAudioBuffer *> BufferQueue;
typedef QVector<QByteArray *>   ChunkQueue;
typedef QVector<TimedChunk>     TimedChunkQueue;


enum NotificationDataToSend {
    All,
    MetaData,
    PlaybackStatus
};

#endif // GLOBALS_H