-
Notifications
You must be signed in to change notification settings - Fork 2
/
capacity.h
69 lines (58 loc) · 2.35 KB
/
capacity.h
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
61
62
63
64
65
66
67
68
69
/****
BpmDj v4.2-pl2: Free Dj Tools
Copyright (C) 2001-2011 Werner Van Belle
http://bpmdj.yellowcouch.org/
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.
See the authors.txt for a full list of people involved.
****/
#ifndef __loaded__capacity_h__
#define __loaded__capacity_h__
using namespace std;
#include "Data/om-data.h"
/**
* Capacities specify which programs are available and which
* programs can be used to decode a file at a specific host ?
* capacities are used in a negated setting. We specify which ones
* are disabled. This allows much easier backward compatibility
* in future versions
*/
#define CAPACITY_MPG123059R 0x01 // 1
// works also for mp123 v060
#define CAPACITY_MPG321 0x02 // 2
#define CAPACITY_OGG123 0x04 // 3
#define CAPACITY_MPLAYER1PRE6 0x08 // 4
#define CAPACITY_MPLAYER1PRE7 0x10 // 5
//---
#define CAPACITY_LAST 0x10
typedef unsigned2 Capacity;
typedef Capacity capacity_type;
const capacity_type no_disabled_capacities = 0;
extern Capacity unavailable_capacities;
// Which capacities are not available for the given extension
Capacity get_ext_disabled_capacities(QString full_name);
// returns the capacity bit number for the given file and host the decoder
// number is the one which will be used in the. Zero indicates no single
// available capacity.
int capacity_to_prognr(int full_capacity);
int get_decoder_program(Capacity host_disabled, Capacity ext_disabled,
Capacity song_disabled);
// is something an extension with capacity ?
QString extensionList();
bool goodExtension(QString extension);
// Manage the capacity widget
class CapacityWidget;
void init_capacity_widget(CapacityWidget * cw, Capacity c);
Capacity get_capacity(CapacityWidget * cw);
void set_used_decoder(int x);
class PlayerConfig;
class Index;
// Set the environment before calling bpmdjraw
int set_decoder_environment(PlayerConfig * config, Index * idx);
#endif // __loaded__capacity_h__