|
1 | | -'' FreeBASIC binding for pa_stable_v19_20140130 |
| 1 | +'' FreeBASIC binding for pa_stable_v190700_20210406 |
2 | 2 | '' |
3 | 3 | '' based on the C header files: |
4 | | -'' $Id: portaudio.h 1859 2012-09-01 00:10:13Z philburk $ |
| 4 | +'' $Id$ |
5 | 5 | '' PortAudio Portable Real-Time Audio Library |
6 | 6 | '' PortAudio API Header File |
7 | 7 | '' Latest version available at: http://www.portaudio.com/ |
|
27 | 27 | '' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
28 | 28 | '' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
29 | 29 | '' |
30 | | -'' The text above constitutes the entire PortAudio license; however, |
| 30 | +'' The text above constitutes the entire PortAudio license; however, |
31 | 31 | '' the PortAudio community also makes the following non-binding requests: |
32 | 32 | '' |
33 | 33 | '' Any person wishing to distribute modifications to the Software is |
34 | 34 | '' requested to send the modifications to the original developer so that |
35 | | -'' they can be incorporated into the canonical version. It is also |
36 | | -'' requested that these non-binding requests be included along with the |
| 35 | +'' they can be incorporated into the canonical version. It is also |
| 36 | +'' requested that these non-binding requests be included along with the |
37 | 37 | '' license above. |
38 | 38 | '' |
39 | 39 | '' translated to FreeBASIC by: |
|
43 | 43 |
|
44 | 44 | #inclib "portaudio" |
45 | 45 |
|
| 46 | +#ifdef __FB_WIN32__ |
| 47 | + #inclib "winmm" |
| 48 | + #inclib "ole32" |
| 49 | + #inclib "setupapi" |
| 50 | + #inclib "advapi32" |
| 51 | +#endif |
| 52 | + |
46 | 53 | #include once "crt/long.bi" |
47 | 54 |
|
48 | 55 | extern "C" |
49 | 56 |
|
50 | 57 | #define PORTAUDIO_H |
51 | 58 | declare function Pa_GetVersion() as long |
52 | 59 | declare function Pa_GetVersionText() as const zstring ptr |
| 60 | +#define paMakeVersionNumber(major, minor, subminor) (((((major) and &hFF) shl 16) or (((minor) and &hFF) shl 8)) or ((subminor) and &hFF)) |
| 61 | + |
| 62 | +type PaVersionInfo |
| 63 | + versionMajor as long |
| 64 | + versionMinor as long |
| 65 | + versionSubMinor as long |
| 66 | + versionControlRevision as const zstring ptr |
| 67 | + versionText as const zstring ptr |
| 68 | +end type |
| 69 | + |
| 70 | +declare function Pa_GetVersionInfo() as const PaVersionInfo ptr |
53 | 71 | type PaError as long |
54 | 72 |
|
55 | 73 | type PaErrorCode as long |
|
0 commit comments