Skip to content

Commit 4248287

Browse files
committed
headers: update portaudio version 19.7.0
- based on pa_stable_v190700_20210406
1 parent dc94175 commit 4248287

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Version 1.20.0
2929
- PEEK, POKE, and SWAP are now quirk words instead of keywords allowing these names to be used as member procedure names
3030
- "\Unnnnnnnn" escape sequence is mapped as follows: when within unicode BMP, "\unnnn", otherwise on linux "\Unnnnnnnn", or on windows "\uD8XX\uDCXX" surrogate pair.
3131
- __FB_QUERY_SYMBOL__( fbc.FB_QUERY_SYMBOL.mangletype, symbol ) returns the mangled type name of symbol
32+
- headers: portaudio version 19.7.0 - based on pa_stable_v190700_20210406
3233

3334
[added]
3435
- x86_64: optimize SHL MOD INTDIV to use 32-bit operation when result will be converted to long/ulong

inc/portaudio.bi

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
'' FreeBASIC binding for pa_stable_v19_20140130
1+
'' FreeBASIC binding for pa_stable_v190700_20210406
22
''
33
'' based on the C header files:
4-
'' $Id: portaudio.h 1859 2012-09-01 00:10:13Z philburk $
4+
'' $Id$
55
'' PortAudio Portable Real-Time Audio Library
66
'' PortAudio API Header File
77
'' Latest version available at: http://www.portaudio.com/
@@ -27,13 +27,13 @@
2727
'' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2828
'' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2929
''
30-
'' The text above constitutes the entire PortAudio license; however,
30+
'' The text above constitutes the entire PortAudio license; however,
3131
'' the PortAudio community also makes the following non-binding requests:
3232
''
3333
'' Any person wishing to distribute modifications to the Software is
3434
'' 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
3737
'' license above.
3838
''
3939
'' translated to FreeBASIC by:
@@ -43,13 +43,31 @@
4343

4444
#inclib "portaudio"
4545

46+
#ifdef __FB_WIN32__
47+
#inclib "winmm"
48+
#inclib "ole32"
49+
#inclib "setupapi"
50+
#inclib "advapi32"
51+
#endif
52+
4653
#include once "crt/long.bi"
4754

4855
extern "C"
4956

5057
#define PORTAUDIO_H
5158
declare function Pa_GetVersion() as long
5259
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
5371
type PaError as long
5472

5573
type PaErrorCode as long

0 commit comments

Comments
 (0)