mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:22:56 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
48
base/applications/sndrec32/audio_receiver.hpp
Normal file
48
base/applications/sndrec32/audio_receiver.hpp
Normal file
|
@ -0,0 +1,48 @@
|
|||
/* PROJECT: ReactOS sndrec32
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: base/applications/sndrec32/audio_receiver.hpp
|
||||
* PURPOSE: Audio receiver
|
||||
* PROGRAMMERS: Marco Pagliaricci (irc: rendar)
|
||||
*/
|
||||
|
||||
#ifndef _AUDIORECEIVER_DEF__H_
|
||||
#define _AUDIORECEIVER_DEF__H_
|
||||
|
||||
#include "audio_def.hpp"
|
||||
|
||||
_AUDIO_NAMESPACE_START_
|
||||
|
||||
class audio_receiver
|
||||
{
|
||||
/* The `audio_wavein' class, while is recording audio, has to access to
|
||||
protected members of `audio_receiver' such as `bytes_received'
|
||||
protected variable */
|
||||
friend class audio_wavein;
|
||||
|
||||
protected:
|
||||
unsigned int bytes_received;
|
||||
|
||||
public:
|
||||
/* Ctors */
|
||||
audio_receiver(void) : bytes_received(0)
|
||||
{
|
||||
}
|
||||
|
||||
/* Dtor */
|
||||
virtual ~audio_receiver(void)
|
||||
{
|
||||
}
|
||||
|
||||
/* Public Functions */
|
||||
|
||||
virtual void audio_receive(unsigned char *, unsigned int) = 0;
|
||||
|
||||
void set_b_received(unsigned int r)
|
||||
{
|
||||
bytes_received = r;
|
||||
}
|
||||
};
|
||||
|
||||
_AUDIO_NAMESPACE_END_
|
||||
|
||||
#endif /* _AUDIORECEIVER_DEF__H_ */
|
Loading…
Add table
Add a link
Reference in a new issue