- Merge from trunk up to r45543
[reactos.git] / base / applications / sndrec32 / audio_receiver.hpp
index 6d6e693..1d79aaf 100644 (file)
@@ -1,3 +1,12 @@
+/* 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_
 
@@ -13,8 +22,7 @@ _AUDIO_NAMESPACE_START_
 
 
 
-//TODO: differenziare audio_receiver da audio_sink?
-//TODO: creare un audio_receiver Tee
+
 
 
 
@@ -23,67 +31,64 @@ _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.
-               //
+        //
+        // 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;
+        friend class audio_wavein;
 
 
 
 
 
 
-       protected:
+    protected:
 
 
-               unsigned int bytes_received;
-               unsigned int status;
+        unsigned int bytes_received;
 
 
 
-       public:
-               
-               
-               //
-               // Ctors
-               //
+    public:
+        
+        
+        //
+        // Ctors
+        //
 
-               audio_receiver( void )
-                       : bytes_received( 0 )
-               {  }
+        audio_receiver( void )
+            : bytes_received( 0 )
+        {  }
 
 
 
 
 
-               //
-               // Dtor
-               //
+        //
+        // Dtor
+        //
 
-               virtual ~audio_receiver( void )
-               {  }
+        virtual ~audio_receiver( void )
+        {  }
 
 
 
-               
-               //
-               // Public Functions
-               //
+        
+        //
+        // Public Functions
+        //
 
-               virtual void audio_receive( unsigned char *, unsigned int ) = 0;
-               
-               //virtual void start_rec( void ) = 0;
-               //virtual void stop_rec( void ) = 0;
+        virtual void audio_receive( unsigned char *, unsigned int ) = 0;
+        
 
 
 
-               void set_b_received( unsigned int r )
-               { bytes_received = r; }
+        void set_b_received( unsigned int r )
+        { bytes_received = r; }
 };