1 /******************************************************************************
5 Copyright 1995-97, Be Incorporated
7 ******************************************************************************/
8 #ifndef _AUDIO_STREAM_H
9 #define _AUDIO_STREAM_H
12 #include "OldBufferStream.h"
16 Class definition for BADCStream and BDACStream
19 class BADCStream
: public BAbstractBufferStream
24 virtual ~BADCStream();
26 status_t
SetADCInput(int32 device
);
27 status_t
ADCInput(int32
* device
) const;
29 status_t
SetSamplingRate(float sRate
);
30 status_t
SamplingRate(float* sRate
) const;
32 status_t
BoostMic(bool boost
);
33 bool IsMicBoosted() const;
35 status_t
SetStreamBuffers(size_t bufferSize
, int32 bufferCount
);
39 virtual BMessenger
* Server() const; /* message pipe to server */
40 virtual stream_id
StreamID() const; /* stream identifier */
44 virtual void _ReservedADCStream1();
45 virtual void _ReservedADCStream2();
46 virtual void _ReservedADCStream3();
54 class BDACStream
: public BAbstractBufferStream
59 virtual ~BDACStream();
61 status_t
SetSamplingRate(float sRate
);
62 status_t
SamplingRate(float* sRate
) const;
64 status_t
SetVolume(int32 device
,
68 status_t
GetVolume(int32 device
,
73 status_t
EnableDevice(int32 device
, bool enable
);
74 bool IsDeviceEnabled(int32 device
) const;
76 status_t
SetStreamBuffers(size_t bufferSize
, int32 bufferCount
);
80 virtual BMessenger
* Server() const; /* message pipe to server */
81 virtual stream_id
StreamID() const; /* stream identifier */
85 virtual void _ReservedDACStream1();
86 virtual void _ReservedDACStream2();
87 virtual void _ReservedDACStream3();
94 #endif // #ifdef _AUDIO_STREAM_H