Mercurial > hg > sv-dependency-builds
annotate 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 |
rev | line source |
---|---|
cannam@140 | 1 #ifndef INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |
cannam@140 | 2 #define INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |
cannam@140 | 3 |
cannam@140 | 4 namespace portaudio |
cannam@140 | 5 { |
cannam@140 | 6 |
cannam@140 | 7 // Forward declaration(s): |
cannam@140 | 8 class Device; |
cannam@140 | 9 |
cannam@140 | 10 // Declaration(s): |
cannam@140 | 11 ////// |
cannam@140 | 12 /// @brief Adapts the given Device to an ASIO specific extension. |
cannam@140 | 13 /// |
cannam@140 | 14 /// Deleting the AsioDeviceAdapter does not affect the underlaying |
cannam@140 | 15 /// Device. |
cannam@140 | 16 ////// |
cannam@140 | 17 class AsioDeviceAdapter |
cannam@140 | 18 { |
cannam@140 | 19 public: |
cannam@140 | 20 AsioDeviceAdapter(Device &device); |
cannam@140 | 21 |
cannam@140 | 22 Device &device(); |
cannam@140 | 23 |
cannam@140 | 24 long minBufferSize() const; |
cannam@140 | 25 long maxBufferSize() const; |
cannam@140 | 26 long preferredBufferSize() const; |
cannam@140 | 27 long granularity() const; |
cannam@140 | 28 |
cannam@140 | 29 void showControlPanel(void *systemSpecific); |
cannam@140 | 30 |
cannam@140 | 31 const char *inputChannelName(int channelIndex) const; |
cannam@140 | 32 const char *outputChannelName(int channelIndex) const; |
cannam@140 | 33 |
cannam@140 | 34 private: |
cannam@140 | 35 Device *device_; |
cannam@140 | 36 |
cannam@140 | 37 long minBufferSize_; |
cannam@140 | 38 long maxBufferSize_; |
cannam@140 | 39 long preferredBufferSize_; |
cannam@140 | 40 long granularity_; |
cannam@140 | 41 }; |
cannam@140 | 42 } |
cannam@140 | 43 |
cannam@140 | 44 #endif // INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |