ReactOS  0.4.12-dev-36-g472787f
audio_receiver.hpp
Go to the documentation of this file.
1 /* PROJECT: ReactOS sndrec32
2  * LICENSE: GPL - See COPYING in the top level directory
3  * FILE: base/applications/sndrec32/audio_receiver.hpp
4  * PURPOSE: Audio receiver
5  * PROGRAMMERS: Marco Pagliaricci (irc: rendar)
6  */
7 
8 #ifndef _AUDIORECEIVER_DEF__H_
9 #define _AUDIORECEIVER_DEF__H_
10 
11 #include "audio_def.hpp"
12 
14 
16 {
17  /* The `audio_wavein' class, while is recording audio, has to access to
18  protected members of `audio_receiver' such as `bytes_received'
19  protected variable */
20  friend class audio_wavein;
21 
22  protected:
23  unsigned int bytes_received;
24 
25  public:
26  /* Ctors */
27  audio_receiver(void) : bytes_received(0)
28  {
29  }
30 
31  /* Dtor */
32  virtual ~audio_receiver(void)
33  {
34  }
35 
36  /* Public Functions */
37 
38  virtual void audio_receive(unsigned char *, unsigned int) = 0;
39 
40  void set_b_received(unsigned int r)
41  {
42  bytes_received = r;
43  }
44 };
45 
47 
48 #endif /* _AUDIORECEIVER_DEF__H_ */
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
unsigned int bytes_received
#define _AUDIO_NAMESPACE_START_
Definition: audio_def.hpp:24
virtual ~audio_receiver(void)
virtual void audio_receive(unsigned char *, unsigned int)=0
void set_b_received(unsigned int r)
#define _AUDIO_NAMESPACE_END_
Definition: audio_def.hpp:25