annotate src/portaudio/bindings/cpp/include/portaudiocpp/PortAudioCpp.hxx @ 44:9894b839b0cb

Updated MSVC
author Chris Cannam
date Tue, 18 Oct 2016 15:58:42 +0100
parents e13257ea84a4
children
rev   line source
Chris@4 1 #ifndef INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX
Chris@4 2 #define INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX
Chris@4 3
Chris@4 4 // ---------------------------------------------------------------------------------------
Chris@4 5
Chris@4 6 //////
Chris@4 7 /// @mainpage PortAudioCpp
Chris@4 8 ///
Chris@4 9 /// <h1>PortAudioCpp - A Native C++ Binding of PortAudio V19</h1>
Chris@4 10 /// <h2>PortAudio</h2>
Chris@4 11 /// <p>
Chris@4 12 /// PortAudio is a portable and mature C API for accessing audio hardware. It offers both callback-based and blocking
Chris@4 13 /// style input and output, deals with sample data format conversions, dithering and much more. There are a large number
Chris@4 14 /// of implementations available for various platforms including Windows MME, Windows DirectX, Windows and MacOS (Classic)
Chris@4 15 /// ASIO, MacOS Classic SoundManager, MacOS X CoreAudio, OSS (Linux), Linux ALSA, JACK (MacOS X and Linux) and SGI Irix
Chris@4 16 /// AL. Note that, currently not all of these implementations are equally complete or up-to-date (as PortAudio V19 is
Chris@4 17 /// still in development). Because PortAudio has a C API, it can easily be called from a variety of other programming
Chris@4 18 /// languages.
Chris@4 19 /// </p>
Chris@4 20 /// <h2>PortAudioCpp</h2>
Chris@4 21 /// <p>
Chris@4 22 /// Although, it is possible to use PortAudio's C API from within a C++ program, this is usually a little awkward
Chris@4 23 /// as procedural and object-oriented paradigms need to be mixed. PortAudioCpp aims to resolve this by encapsulating
Chris@4 24 /// PortAudio's C API to form an equivalent object-oriented C++ API. It provides a more natural integration of PortAudio
Chris@4 25 /// into C++ programs as well as a more structured interface. PortAudio's concepts were preserved as much as possible and
Chris@4 26 /// no additional features were added except for some `convenience methods'.
Chris@4 27 /// </p>
Chris@4 28 /// <p>
Chris@4 29 /// PortAudioCpp's main features are:
Chris@4 30 /// <ul>
Chris@4 31 /// <li>Structured object model.</li>
Chris@4 32 /// <li>C++ exception handling instead of C-style error return codes.</li>
Chris@4 33 /// <li>Handling of callbacks using free functions (C and C++), static functions, member functions or instances of classes
Chris@4 34 /// derived from a given interface.</li>
Chris@4 35 /// <li>STL compliant iterators to host APIs and devices.</li>
Chris@4 36 /// <li>Some additional convenience functions to more easily set up and use PortAudio.</li>
Chris@4 37 /// </ul>
Chris@4 38 /// </p>
Chris@4 39 /// <p>
Chris@4 40 /// PortAudioCpp requires a recent version of the PortAudio V19 source code. This can be obtained from CVS or as a snapshot
Chris@4 41 /// from the website. The examples also require the ASIO 2 SDK which can be obtained from the Steinberg website. Alternatively, the
Chris@4 42 /// examples can easily be modified to compile without needing ASIO.
Chris@4 43 /// </p>
Chris@4 44 /// <p>
Chris@4 45 /// Supported platforms:
Chris@4 46 /// <ul>
Chris@4 47 /// <li>Microsoft Visual C++ 6.0, 7.0 (.NET 2002) and 7.1 (.NET 2003).</li>
Chris@4 48 /// <li>GNU G++ 2.95 and G++ 3.3.</li>
Chris@4 49 /// </ul>
Chris@4 50 /// Other platforms should be easily supported as PortAudioCpp is platform-independent and (reasonably) C++ standard compliant.
Chris@4 51 /// </p>
Chris@4 52 /// <p>
Chris@4 53 /// This documentation mainly provides information specific to PortAudioCpp. For a more complete explaination of all of the
Chris@4 54 /// concepts used, please consult the PortAudio documentation.
Chris@4 55 /// </p>
Chris@4 56 /// <p>
Chris@4 57 /// PortAudioCpp was developed by Merlijn Blaauw with many great suggestions and help from Ross Bencina. Ludwig Schwardt provided
Chris@4 58 /// GNU/Linux build files and checked G++ compatibility. PortAudioCpp may be used under the same licensing, conditions and
Chris@4 59 /// warranty as PortAudio. See <a href="http://www.portaudio.com/license.html">the PortAudio license</a> for more details.
Chris@4 60 /// </p>
Chris@4 61 /// <h2>Links</h2>
Chris@4 62 /// <p>
Chris@4 63 /// <a href="http://www.portaudio.com/">Official PortAudio site.</a><br>
Chris@4 64 /// </p>
Chris@4 65 //////
Chris@4 66
Chris@4 67 // ---------------------------------------------------------------------------------------
Chris@4 68
Chris@4 69 //////
Chris@4 70 /// @namespace portaudio
Chris@4 71 ///
Chris@4 72 /// To avoid name collision, everything in PortAudioCpp is in the portaudio
Chris@4 73 /// namespace. If this name is too long it's usually pretty safe to use an
Chris@4 74 /// alias like ``namespace pa = portaudio;''.
Chris@4 75 //////
Chris@4 76
Chris@4 77 // ---------------------------------------------------------------------------------------
Chris@4 78
Chris@4 79 //////
Chris@4 80 /// @file PortAudioCpp.hxx
Chris@4 81 /// An include-all header file (for lazy programmers and using pre-compiled headers).
Chris@4 82 //////
Chris@4 83
Chris@4 84 // ---------------------------------------------------------------------------------------
Chris@4 85
Chris@4 86 #include "portaudio.h"
Chris@4 87
Chris@4 88 #include "portaudiocpp/AutoSystem.hxx"
Chris@4 89 #include "portaudiocpp/BlockingStream.hxx"
Chris@4 90 #include "portaudiocpp/CallbackInterface.hxx"
Chris@4 91 #include "portaudiocpp/CallbackStream.hxx"
Chris@4 92 #include "portaudiocpp/CFunCallbackStream.hxx"
Chris@4 93 #include "portaudiocpp/CppFunCallbackStream.hxx"
Chris@4 94 #include "portaudiocpp/Device.hxx"
Chris@4 95 #include "portaudiocpp/Exception.hxx"
Chris@4 96 #include "portaudiocpp/HostApi.hxx"
Chris@4 97 #include "portaudiocpp/InterfaceCallbackStream.hxx"
Chris@4 98 #include "portaudiocpp/MemFunCallbackStream.hxx"
Chris@4 99 #include "portaudiocpp/SampleDataFormat.hxx"
Chris@4 100 #include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
Chris@4 101 #include "portaudiocpp/Stream.hxx"
Chris@4 102 #include "portaudiocpp/StreamParameters.hxx"
Chris@4 103 #include "portaudiocpp/System.hxx"
Chris@4 104 #include "portaudiocpp/SystemDeviceIterator.hxx"
Chris@4 105 #include "portaudiocpp/SystemHostApiIterator.hxx"
Chris@4 106
Chris@4 107 // ---------------------------------------------------------------------------------------
Chris@4 108
Chris@4 109 #endif // INCLUDED_PORTAUDIO_PORTAUDIOCPP_HXX