mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
108
base/applications/sndrec32/audio_receiver.hpp
Normal file
108
base/applications/sndrec32/audio_receiver.hpp
Normal file
|
@ -0,0 +1,108 @@
|
|||
/* 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 //ifdef _AUDIORECEIVER_DEF__H_
|
Loading…
Add table
Add a link
Reference in a new issue