summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx')
-rw-r--r--3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx117
1 files changed, 58 insertions, 59 deletions
diff --git a/3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx b/3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx
index d5ff9dd2b3c..bdd966ebfa2 100644
--- a/3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx
+++ b/3rdparty/portaudio/bindings/cpp/include/portaudiocpp/System.hxx
@@ -10,9 +10,9 @@
// Forward declaration(s):
namespace portaudio
{
- class Device;
- class Stream;
- class HostApi;
+ class Device;
+ class Stream;
+ class HostApi;
}
// ---------------------------------------------------------------------------------------
@@ -22,86 +22,85 @@ namespace portaudio
{
- //////
- /// @brief System singleton which represents the PortAudio system.
- ///
- /// The System is used to initialize/terminate PortAudio and provide
- /// a single acccess point to the PortAudio System (instance()).
- /// It can be used to iterate through all HostApi 's in the System as
- /// well as all devices in the System. It also provides some utility
- /// functionality of PortAudio.
- ///
- /// Terminating the System will also abort and close the open streams.
- /// The Stream objects will need to be deallocated by the client though
- /// (it's usually a good idea to have them cleaned up automatically).
- //////
- class System
- {
- public:
- class HostApiIterator; // forward declaration
- class DeviceIterator; // forward declaration
+ //////
+ /// @brief System singleton which represents the PortAudio system.
+ ///
+ /// The System is used to initialize/terminate PortAudio and provide
+ /// a single access point to the PortAudio System (instance()).
+ /// It can be used to iterate through all HostApi 's in the System as
+ /// well as all devices in the System. It also provides some utility
+ /// functionality of PortAudio.
+ ///
+ /// Terminating the System will also abort and close the open streams.
+ /// The Stream objects will need to be deallocated by the client though
+ /// (it's usually a good idea to have them cleaned up automatically).
+ //////
+ class System
+ {
+ public:
+ class HostApiIterator; // forward declaration
+ class DeviceIterator; // forward declaration
- // -------------------------------------------------------------------------------
+ // -------------------------------------------------------------------------------
- static int version();
- static const char *versionText();
+ static int version();
+ static const char *versionText();
- static void initialize();
- static void terminate();
+ static void initialize();
+ static void terminate();
- static System &instance();
- static bool exists();
+ static System &instance();
+ static bool exists();
- // -------------------------------------------------------------------------------
+ // -------------------------------------------------------------------------------
- // host apis:
- HostApiIterator hostApisBegin();
- HostApiIterator hostApisEnd();
+ // host apis:
+ HostApiIterator hostApisBegin();
+ HostApiIterator hostApisEnd();
- HostApi &defaultHostApi();
+ HostApi &defaultHostApi();
- HostApi &hostApiByTypeId(PaHostApiTypeId type);
- HostApi &hostApiByIndex(PaHostApiIndex index);
+ HostApi &hostApiByTypeId(PaHostApiTypeId type);
+ HostApi &hostApiByIndex(PaHostApiIndex index);
- int hostApiCount();
+ int hostApiCount();
- // -------------------------------------------------------------------------------
+ // -------------------------------------------------------------------------------
- // devices:
- DeviceIterator devicesBegin();
- DeviceIterator devicesEnd();
+ // devices:
+ DeviceIterator devicesBegin();
+ DeviceIterator devicesEnd();
- Device &defaultInputDevice();
- Device &defaultOutputDevice();
+ Device &defaultInputDevice();
+ Device &defaultOutputDevice();
- Device &deviceByIndex(PaDeviceIndex index);
+ Device &deviceByIndex(PaDeviceIndex index);
- int deviceCount();
+ int deviceCount();
- static Device &nullDevice();
+ static Device &nullDevice();
- // -------------------------------------------------------------------------------
+ // -------------------------------------------------------------------------------
- // misc:
- void sleep(long msec);
- int sizeOfSample(PaSampleFormat format);
+ // misc:
+ void sleep(long msec);
+ int sizeOfSample(PaSampleFormat format);
- private:
- System();
- ~System();
+ private:
+ System();
+ ~System();
- static System *instance_;
- static int initCount_;
+ static System *instance_;
+ static int initCount_;
- static HostApi **hostApis_;
- static Device **devices_;
+ static HostApi **hostApis_;
+ static Device **devices_;
- static Device *nullDevice_;
- };
+ static Device *nullDevice_;
+ };
} // namespace portaudio
#endif // INCLUDED_PORTAUDIO_SYSTEM_HXX
-