Debian Codegraph @

components/extension/notifier/player.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2018 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_NOTIFIER_PLAYER
14 #define H_NOTIFIER_PLAYER
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20
21 using namespace BoCA;
22
23 namespace BoCA
24 {
25 class Player
26 {
27 private:
28 AS::OutputComponent *output;
29
30 Bool playing;
31 Bool stop;
32
33 Int PlayThread(String);
34
35 Void Loop(const Track &, IO::InStream *);
36 Void Write(Buffer<UnsignedByte> &, Int);
37 public:
38 Player();
39 ~Player();
40 slots:
41 Void Play(const String &);
42 Void Stop();
43 };
44 };
45
46 #endif