Mercurial > hg > sv-dependency-builds
annotate src/portaudio_20140130/bindings/cpp/include/portaudiocpp/AsioDeviceAdapter.hxx @ 83:ae30d91d2ffe
Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author | Chris Cannam |
---|---|
date | Fri, 07 Feb 2020 11:51:13 +0000 |
parents | 7ddb4fc30dac |
children |
rev | line source |
---|---|
Chris@39 | 1 #ifndef INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |
Chris@39 | 2 #define INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |
Chris@39 | 3 |
Chris@39 | 4 namespace portaudio |
Chris@39 | 5 { |
Chris@39 | 6 |
Chris@39 | 7 // Forward declaration(s): |
Chris@39 | 8 class Device; |
Chris@39 | 9 |
Chris@39 | 10 // Declaration(s): |
Chris@39 | 11 ////// |
Chris@39 | 12 /// @brief Adapts the given Device to an ASIO specific extension. |
Chris@39 | 13 /// |
Chris@39 | 14 /// Deleting the AsioDeviceAdapter does not affect the underlaying |
Chris@39 | 15 /// Device. |
Chris@39 | 16 ////// |
Chris@39 | 17 class AsioDeviceAdapter |
Chris@39 | 18 { |
Chris@39 | 19 public: |
Chris@39 | 20 AsioDeviceAdapter(Device &device); |
Chris@39 | 21 |
Chris@39 | 22 Device &device(); |
Chris@39 | 23 |
Chris@39 | 24 long minBufferSize() const; |
Chris@39 | 25 long maxBufferSize() const; |
Chris@39 | 26 long preferredBufferSize() const; |
Chris@39 | 27 long granularity() const; |
Chris@39 | 28 |
Chris@39 | 29 void showControlPanel(void *systemSpecific); |
Chris@39 | 30 |
Chris@39 | 31 const char *inputChannelName(int channelIndex) const; |
Chris@39 | 32 const char *outputChannelName(int channelIndex) const; |
Chris@39 | 33 |
Chris@39 | 34 private: |
Chris@39 | 35 Device *device_; |
Chris@39 | 36 |
Chris@39 | 37 long minBufferSize_; |
Chris@39 | 38 long maxBufferSize_; |
Chris@39 | 39 long preferredBufferSize_; |
Chris@39 | 40 long granularity_; |
Chris@39 | 41 }; |
Chris@39 | 42 } |
Chris@39 | 43 |
Chris@39 | 44 #endif // INCLUDED_PORTAUDIO_ASIODEVICEADAPTER_HXX |