Commit graph

734 commits

Author SHA1 Message Date
Peter Ross
38eba25bcc WASAPI: Add PaWaspi_GetIMMDevice function
The IMMDevice pointer enables access to audio device capabiltiies not exposed by PortAudio.
https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nn-mmdeviceapi-immdevice
2021-02-10 08:10:21 +11:00
Peter Ross
0f26679b88 cmake_support/template_portaudio.def: make symbol numbers consistent with build/msvc/portaudio.def 2021-02-10 07:29:15 +11:00
orbea
4932b488c5 build: Fix builds with parallel make. 2021-02-05 15:40:33 -08:00
John Melas
dd857f6108 replace Carbon with CoreFoundation and CoreServices 2021-02-05 11:06:09 -08:00
Ed Maste
607b7d94d0
OSS: support 32-bit signed format AFMT_S32_NE (#462)
It may not be provided by all OSS implementations, so wrap the cases in
`#ifdef AFMT_S32_NE`.
2021-02-04 13:11:03 +11:00
Phil Burk
51547aa31c configure: add arm64 for Mac M1
Add additional architecture to builds.

Fixes #445
2021-02-03 17:35:08 -08:00
Phil Burk
9756c86061 configure: add INCLUDES for mingw build
Previously, only portaudio.h was installed when building under mingw using
make. This behavior differs from CMakeLists.txt PA_PUBLIC_INCLUDES where
pa_win_*.h header files are installed.

To cross-compile using MXE (https://mxe.cc/) we need pa_win_*.h headers.
Add them to configure.in so that they are installed.

Patch by Stefan Hajnoczi
2021-02-03 17:31:02 -08:00
MichalPetryka
9a5c7cb346
Cleanup newlines at EOF in skeleton (#480) 2021-02-04 12:20:11 +11:00
MichalPetryka
74fa59a036
Cleanup newlines at EOF in src/os/win (#481) 2021-02-04 12:19:45 +11:00
MichalPetryka
b5a55169b9
Cleanup newlines at EOF in src/common (#482) 2021-02-04 12:19:23 +11:00
MichalPetryka
67dc808f69
Cleanup newlines at EOF in src/hostapi/asio (#483) 2021-02-04 12:18:29 +11:00
Ross Bencina
d36033d5da
Clean up whitespace in src/hostapi/wasapi in preparation for .editorconfig. Indent by 4 spaces. Strip trailing whitespace. (#477) 2021-02-04 12:17:29 +11:00
Ross Bencina
bfb9b7f7e7
Clean up whitespace in src/hostapi/wdmks in preparation for .editorconfig. Indent by 4 spaces. Strip trailing whitespace. (#476) 2021-02-04 12:17:16 +11:00
Ross Bencina
3686f2f053
Clean up whitespace in src/hostapi/alsa in preparation for .editorconfig. Indent by 4 spaces. (#475) 2021-02-04 12:17:00 +11:00
Davide Gerhard
813b281826 pa_mac_core.c: add missing definition to fix build on older systems
thanks to @kencu
2021-01-31 09:08:05 -08:00
luz paz
52b1026c1f Fix user-facing and non-user-facing typos
Found via `codespell v2.1.dev0`  
`codespell -q 3 -L chello,gord,guid,numer,pres,uint,wirth`
2021-01-27 17:40:26 -08:00
John Melas
b50bca981e
use variadic arguments in DEFINE_GUID also for MSVC (#374)
The fix for DEFINE_GUID that was recently added in pa_win_wdmks.c is also needed for the MSVC compiler.
Latest versions of the compiler support the /Zc:preprocessor option which is conforming to C99 and later standards
https://docs.microsoft.com/en-us/cpp/build/reference/zc-preprocessor?view=msvc-160
so it generates the exact same error as Clang (too many arguments error).

Co-authored-by: John Melas <john@jmelas.gr>
2021-01-28 12:29:24 +11:00
Ross Bencina
358d153564
Run MSBuild MSVC project CI for pull requests (#419) 2021-01-27 23:50:10 +11:00
Phil Burk
fa525d6199
mac autoconf: support current and future SDKs (#470)
Improve the way we generate the path to the SDK so that it
it not tied to specific Mac versions.

Also changed macosx-version-min to 10.6

Fixes #378
Fixes #468

Use xcrun instead of xcodebuild

Note that "configure" was generated using autoconf on Linux.
2021-01-26 15:25:10 -08:00
Phil Burk
68e1c5685b
Fix patest1 printf (#467)
* Fix patest1.c printf

Got changed from fprintf() accidentally.

Fixes #466
2021-01-24 14:54:28 -08:00
orbea
6a86d4bd3b autoconf build: add src dir src/hostapi/skeleton to fix out of tree builds." 2021-01-22 07:40:11 -08:00
petris
85f7602a3c Whitespace cleanup in test 2021-01-22 07:34:52 -08:00
petris
92e7210603 Whitespace cleanup in examples 2021-01-22 07:34:09 -08:00
petris
2d0a88a618 Whitespace cleanup in qa 2021-01-22 07:18:08 -08:00
Phil Burk
f7efb6b53c
docs: Pa_OpenStream() fails if sampleRate unavailable (#446)
It was not clear in the previous docs.
Fixes #443
2021-01-21 08:17:27 -08:00
Ross Bencina
0b832f5ff1
Clean up whitespace in qa/ in preparation for .editorconfig. (#418)
* Clean up whitespace in qa/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.
2021-01-22 00:00:40 +11:00
Ross Bencina
f58b69dc36
Clean up whitespace in test/ in preparation for .editorconfig. (#417)
* Clean up whitespace in test/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.
2021-01-21 23:45:10 +11:00
Ross Bencina
b251bdd7f8
Clean up whitespace in src/os/unix in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF. (#410) 2021-01-21 23:27:43 +11:00
Ross Bencina
4c673d1f2b
Clean up whitespace in src/os/win in preparation for .editorconfig. (#409)
* Clean up whitespace in src/os/win in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.
2021-01-21 23:23:00 +11:00
Ross Bencina
fac71001ee
Clean up whitespace in src/common in preparation for .editorconfig. (#408)
* Clean up whitespace in src/common in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace.
2021-01-21 23:06:08 +11:00
Ross Bencina
af9f4e3e19
Clean up whitespace in pa_win_wmme.c in preparation for .editorconfig (#413)
* Clean up whitespace in pa_win_wmme.c in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.

* vertically align trailing comments on 4 space boundary
2021-01-21 22:46:49 +11:00
Ross Bencina
fd4cebf2cb
Clean up whitespace in src\hostapi\dsound in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF. (#412) 2021-01-21 22:32:05 +11:00
Ross Bencina
238d8db31a
Clean up whitespace in examples/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF. (#416) 2021-01-21 22:23:23 +11:00
Ross Bencina
f476839ab8
Clean up whitespace in pa_asio.cpp in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF. (#411) 2021-01-21 22:17:17 +11:00
Etienne Dechamps
80c5f27120
Ignore the Visual Studio CMake settings file. (#422)
When using CMake, this file is written by Visual Studio to hold custom
CMake parameters.
2021-01-21 22:16:44 +11:00
Ross Bencina
20a971df57
Clean up whitespace in src/hostapi/{asihpi, jack, oss, skeleton} in preparation for .editorconfig. (#414)
* Clean up whitespace in src/hostapi/{asihpi, jack, oss, skeleton} in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.

* Additional formatting cleanups.
2021-01-21 21:58:54 +11:00
Ross Bencina
c441223dfa
Clean up whitespace in include/ in preparation for .editorconfig. (#415)
* Clean up whitespace in include/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.
2021-01-21 14:19:22 +11:00
John Melas
51e075d3dc alignment fixes 2021-01-20 18:21:30 -08:00
John Melas
9a1fa58773 remove todo comments 2021-01-20 18:21:30 -08:00
John Melas
ac76dea010 pass input size in AudioConverterFillComplexBuffer as number of packets 2021-01-20 18:21:30 -08:00
John Melas
61c402f941 fix ringBufferIOProc 2021-01-20 18:21:30 -08:00
John Melas
1d3a239fd0 remove support for OS X 10.4, rename functions pa_ -> PaMacCore_ 2021-01-20 18:21:30 -08:00
John Melas
f4ca438599 formatting and #ifdef comment 2021-01-20 18:21:30 -08:00
John Melas
992e84387f fix compile error 2021-01-20 18:21:30 -08:00
John Melas
98ea697d33 new hal 2021-01-20 18:21:30 -08:00
John Melas
afc6591519 fix logging warnings 2021-01-20 18:21:30 -08:00
Ed Maste
fc2a24d394 OSS: correct test for unsupported formats
Previously GetAvailableFormats returned paSampleFormatNotSupported if
AFMT_S16_NE was not supported, regardless of the supported state of any
other formats.  Instead, return paSampleFormatNotSupported if no
supported formats are found.
2021-01-20 18:16:21 -08:00
Ed Maste
f13ab77c46 OSS: include both /dev/dsp and /dev/dsp0
On FreeBSD /dev/dsp is the default device but may not be /dev/dsp0.
PortAudio in the FreeBSD ports collection initially had a patch to
replace the default device with /dev/dsp (for example, with three
devices and /dev/dsp1 as the default we'd have /dev/dsp0, /dev/dsp,
/dev/dsp2).  This caused some trouble (the first device is no longer
default) and was later replaced with this change, leaving /dev/dsp
as the first entry, and just adding each /dev/dsp%d that exists.

FreeBSD bugs 208968 and 236118.
2021-01-20 18:15:56 -08:00
Be
91debabf3f remove unused and undocumented fixdir.bat & fixfile.bat 2021-01-21 12:56:56 +11:00
Be
0377f169b7 remove index.html
This file does not belong in a code repository.
2021-01-20 17:54:15 -08:00