Debian Codegraph @

include/engine/converter.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2021 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_FREAC_CONVERTER
14 #define H_FREAC_CONVERTER
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20
21 namespace freac
22 {
23 class JobList;
24
25 enum ConversionStep
26 {
27 ConversionStepNone = -1,
28
29 ConversionStepOnTheFly = 0,
30 ConversionStepDecode = 1,
31 ConversionStepEncode = 2,
32 ConversionStepVerify = 3
33 };
34
35 class Converter
36 {
37 private:
38 Threads::Semaphore finishedSignal;
39
40 Bool IsAnyTrackLocked(const Array<BoCA::Track> &) const;
41 public:
42 Converter();
43 ~Converter();
44
45 Void Convert(const Array<BoCA::Track> &, Bool = False, Bool = True);
46 slots:
47 Void OnFinishJob();
48 };
49 };
50
51 #endif