Debian Codegraph @

components/output/oss/oss.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2015 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 #include <boca.h>
14
15 BoCA_BEGIN_COMPONENT(OutputOSS)
16
17 namespace BoCA
18 {
19 class OutputOSS : public CS::OutputComponent
20 {
21 private:
22 int device_fd;
23
24 Bool paused;
25 public:
26 static const String &GetComponentSpecs();
27
28 OutputOSS();
29 ~OutputOSS();
30
31 Bool Activate();
32 Bool Deactivate();
33
34 Int WriteData(Buffer<UnsignedByte> &);
35
36 Int CanWrite();
37
38 Int SetPause(Bool);
39 Bool IsPlaying();
40 };
41 };
42
43 BoCA_DEFINE_OUTPUT_COMPONENT(OutputOSS)
44
45 BoCA_END_COMPONENT(OutputOSS)