CSL  6.0
Microphone.h
Go to the documentation of this file.
1 ///
2 /// Microphone.h -- CSL class that copies the input buffer (from the sound driver) to its output
3 /// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
4 ///
5 
6 #ifndef CSL_Microphone_H
7 #define CSL_Microphone_H
8 
9 #include "CSL_Includes.h"
10 
11 namespace csl {
12 
13 ///
14 /// Microphone -- copies the input buffer (from the sound driver) to its output
15 ///
16 
17 class Microphone : public UnitGenerator {
18 public:
19  Microphone(IO & anIO) : mIO(anIO) {};
21 
22  void nextBuffer(Buffer &outputBuffer) throw (CException); ///< copy next buffer from cache
23 
24 protected:
25  IO & mIO; // my IO object
26 };
27 
28 }
29 
30 #endif
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Definition: Accessor.h:17
void nextBuffer(Buffer &outputBuffer)
copy next buffer from cache
Definition: Microphone.cpp:10
Microphone – copies the input buffer (from the sound driver) to its output.
Definition: Microphone.h:17
IO – the abstract I/O scheduling class; subclasses interface to specific I/O APIs.
Definition: CSL_Core.h:752
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
Definition: CSL_Core.h:106
Microphone(IO &anIO)
Definition: Microphone.h:19
forward declaration
Definition: CSL_Core.h:241
Base class of CSL exceptions (written upper-case). Has a string message.