tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / media / legacy / OldAudioStream.h
blob3b9ca6f0f7c27e3d32b9d8285fa6d5141aa4565c
1 /******************************************************************************
3 File: AudioStream.h
5 Copyright 1995-97, Be Incorporated
7 ******************************************************************************/
8 #ifndef _AUDIO_STREAM_H
9 #define _AUDIO_STREAM_H
12 #include "OldBufferStream.h"
15 /* ================
16 Class definition for BADCStream and BDACStream
17 ================ */
19 class BADCStream : public BAbstractBufferStream
21 public:
23 BADCStream();
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);
37 protected:
39 virtual BMessenger* Server() const; /* message pipe to server */
40 virtual stream_id StreamID() const; /* stream identifier */
42 private:
44 virtual void _ReservedADCStream1();
45 virtual void _ReservedADCStream2();
46 virtual void _ReservedADCStream3();
48 BMessenger* fServer;
49 stream_id fStreamID;
50 uint32 _reserved[4];
54 class BDACStream : public BAbstractBufferStream
56 public:
58 BDACStream();
59 virtual ~BDACStream();
61 status_t SetSamplingRate(float sRate);
62 status_t SamplingRate(float* sRate) const;
64 status_t SetVolume(int32 device,
65 float l_volume,
66 float r_volume);
68 status_t GetVolume(int32 device,
69 float *l_volume,
70 float *r_volume,
71 bool *enabled) const;
73 status_t EnableDevice(int32 device, bool enable);
74 bool IsDeviceEnabled(int32 device) const;
76 status_t SetStreamBuffers(size_t bufferSize, int32 bufferCount);
78 protected:
80 virtual BMessenger* Server() const; /* message pipe to server */
81 virtual stream_id StreamID() const; /* stream identifier */
83 private:
85 virtual void _ReservedDACStream1();
86 virtual void _ReservedDACStream2();
87 virtual void _ReservedDACStream3();
89 BMessenger* fServer;
90 stream_id fStreamID;
91 uint32 _reserved[4];
94 #endif // #ifdef _AUDIO_STREAM_H