comparison src/portaudio_20161030/bindings/cpp/include/portaudiocpp/AsioDeviceAdapter.hxx @ 140:59a8758c56b1

Add source for PortAudio stable v190600_20161030
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 03 Jan 2017 13:44:07 +0000
parents
children
comparison
equal deleted inserted replaced
139:413e081fcc6f 140:59a8758c56b1
1 #ifndef INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
2 #define INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX
3
4 namespace portaudio
5 {
6
7 // Forward declaration(s):
8 class Device;
9
10 // Declaration(s):
11 //////
12 /// @brief Adapts the given Device to an ASIO specific extension.
13 ///
14 /// Deleting the AsioDeviceAdapter does not affect the underlaying
15 /// Device.
16 //////
17 class AsioDeviceAdapter
18 {
19 public:
20 AsioDeviceAdapter(Device &device);
21
22 Device &device();
23
24 long minBufferSize() const;
25 long maxBufferSize() const;
26 long preferredBufferSize() const;
27 long granularity() const;
28
29 void showControlPanel(void *systemSpecific);
30
31 const char *inputChannelName(int channelIndex) const;
32 const char *outputChannelName(int channelIndex) const;
33
34 private:
35 Device *device_;
36
37 long minBufferSize_;
38 long maxBufferSize_;
39 long preferredBufferSize_;
40 long granularity_;
41 };
42 }
43
44 #endif // INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX