mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 14:19:25 +00:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/* 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_ */
|