YSE sound engine  1.0
cross platform sound engine
 All Classes Namespaces Functions Pages
deviceSetup.hpp
1 /*
2  ==============================================================================
3 
4  deviceImplementation.h
5  Created: 10 Apr 2014 6:05:33pm
6  Author: yvan
7 
8  ==============================================================================
9 */
10 
11 #ifndef DEVICESETUP_HPP_INCLUDED
12 #define DEVICESETUP_HPP_INCLUDED
13 
14 #include "../classes.hpp"
15 
16 namespace YSE {
17  namespace DEVICE {
18 
19  class API setupObject {
20  public:
21  setupObject();
22 
23  setupObject & setInput(const interfaceObject & in);
24  setupObject & setOutput(const interfaceObject & out);
25  setupObject & setSampleRate(double value);
26  setupObject & setBufferSize(int value);
27  int getOutputChannels() const;
28 
29  private:
30  const interfaceObject * in;
31  const interfaceObject * out;
32  double sampleRate;
33  int bufferSize;
34 
35  friend class YSE::DEVICE::managerObject;
36  };
37  }
38 }
39 
40 
41 
42 #endif // DEVICEIMPLEMENTATION_H_INCLUDED