ReactOS 0.4.15-dev-8116-gf69e256
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 */
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 {
43 }
44};
45
47
48#endif /* _AUDIORECEIVER_DEF__H_ */
#define _AUDIO_NAMESPACE_START_
Definition: audio_def.hpp:24
#define _AUDIO_NAMESPACE_END_
Definition: audio_def.hpp:25
void set_b_received(unsigned int r)
virtual void audio_receive(unsigned char *, unsigned int)=0
unsigned int bytes_received
virtual ~audio_receiver(void)
GLdouble GLdouble GLdouble r
Definition: gl.h:2055