| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#include <boca.h> |
| 14 |
|
| 15 |
BoCA_BEGIN_COMPONENT(OutputALSA) |
| 16 |
|
| 17 |
namespace BoCA |
| 18 |
{ |
| 19 |
class OutputALSA : public CS::OutputComponent |
| 20 |
{ |
| 21 |
private: |
| 22 |
snd_pcm_t *playback_handle; |
| 23 |
public: |
| 24 |
static const String &GetComponentSpecs(); |
| 25 |
|
| 26 |
OutputALSA(); |
| 27 |
~OutputALSA(); |
| 28 |
|
| 29 |
Bool Activate(); |
| 30 |
Bool Deactivate(); |
| 31 |
|
| 32 |
Int WriteData(Buffer<UnsignedByte> &); |
| 33 |
Bool Finish(); |
| 34 |
|
| 35 |
Int CanWrite(); |
| 36 |
|
| 37 |
Int SetPause(Bool); |
| 38 |
Bool IsPlaying(); |
| 39 |
}; |
| 40 |
}; |
| 41 |
|
| 42 |
BoCA_DEFINE_OUTPUT_COMPONENT(OutputALSA) |
| 43 |
|
| 44 |
BoCA_END_COMPONENT(OutputALSA) |