ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

audio_receiver.hpp
Go to the documentation of this file.
00001 /* PROJECT:         ReactOS sndrec32
00002  * LICENSE:         GPL - See COPYING in the top level directory
00003  * FILE:            base/applications/sndrec32/audio_receiver.hpp
00004  * PURPOSE:         Audio receiver
00005  * PROGRAMMERS:     Marco Pagliaricci (irc: rendar)
00006  */
00007 
00008 
00009 
00010 #ifndef _AUDIORECEIVER_DEF__H_
00011 #define _AUDIORECEIVER_DEF__H_
00012 
00013 
00014 
00015 #include "audio_def.hpp"
00016 
00017 
00018 
00019 
00020 _AUDIO_NAMESPACE_START_
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 class audio_receiver
00032 {
00033 
00034         //
00035         // The `audio_wavein' class, while is
00036         // recording audio, has to access to 
00037         // protected members of `audio_receiver'
00038         // such as `bytes_received' protected
00039         // variable.
00040         //
00041 
00042         friend class audio_wavein;
00043 
00044 
00045 
00046 
00047 
00048 
00049     protected:
00050 
00051 
00052         unsigned int bytes_received;
00053 
00054 
00055 
00056     public:
00057         
00058         
00059         //
00060         // Ctors
00061         //
00062 
00063         audio_receiver( void )
00064             : bytes_received( 0 )
00065         {  }
00066 
00067 
00068 
00069 
00070 
00071         //
00072         // Dtor
00073         //
00074 
00075         virtual ~audio_receiver( void )
00076         {  }
00077 
00078 
00079 
00080         
00081         //
00082         // Public Functions
00083         //
00084 
00085         virtual void audio_receive( unsigned char *, unsigned int ) = 0;
00086         
00087 
00088 
00089 
00090         void set_b_received( unsigned int r )
00091         { bytes_received = r; }
00092 };
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 _AUDIO_NAMESPACE_END_
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 #endif //ifdef _AUDIORECEIVER_DEF__H_

Generated on Thu May 24 2012 04:17:42 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.