| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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) |