]> Repos - portaudio/log
portaudio
5 years agoCleanup newlines at EOF in src/os/win (#481)
MichalPetryka [Thu, 4 Feb 2021 01:19:45 +0000 (02:19 +0100)]
Cleanup newlines at EOF in src/os/win (#481)

5 years agoCleanup newlines at EOF in src/common (#482)
MichalPetryka [Thu, 4 Feb 2021 01:19:23 +0000 (02:19 +0100)]
Cleanup newlines at EOF in src/common (#482)

5 years agoCleanup newlines at EOF in src/hostapi/asio (#483)
MichalPetryka [Thu, 4 Feb 2021 01:18:29 +0000 (02:18 +0100)]
Cleanup newlines at EOF in src/hostapi/asio (#483)

5 years agoClean up whitespace in src/hostapi/wasapi in preparation for .editorconfig. Indent...
Ross Bencina [Thu, 4 Feb 2021 01:17:29 +0000 (12:17 +1100)]
Clean up whitespace in src/hostapi/wasapi in preparation for .editorconfig. Indent by 4 spaces. Strip trailing whitespace. (#477)

5 years agoClean up whitespace in src/hostapi/wdmks in preparation for .editorconfig. Indent...
Ross Bencina [Thu, 4 Feb 2021 01:17:16 +0000 (12:17 +1100)]
Clean up whitespace in src/hostapi/wdmks in preparation for .editorconfig. Indent by 4 spaces. Strip trailing whitespace. (#476)

5 years agoClean up whitespace in src/hostapi/alsa in preparation for .editorconfig. Indent...
Ross Bencina [Thu, 4 Feb 2021 01:17:00 +0000 (12:17 +1100)]
Clean up whitespace in src/hostapi/alsa in preparation for .editorconfig. Indent by 4 spaces. (#475)

5 years agopa_mac_core.c: add missing definition to fix build on older systems
Davide Gerhard [Thu, 28 Jan 2021 07:33:55 +0000 (08:33 +0100)]
pa_mac_core.c: add missing definition to fix build on older systems

thanks to @kencu

5 years agoFix user-facing and non-user-facing typos
luz paz [Sun, 24 Jan 2021 12:39:59 +0000 (07:39 -0500)]
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`

5 years agouse variadic arguments in DEFINE_GUID also for MSVC (#374)
John Melas [Thu, 28 Jan 2021 01:29:24 +0000 (03:29 +0200)]
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>
5 years agoRun MSBuild MSVC project CI for pull requests (#419)
Ross Bencina [Wed, 27 Jan 2021 12:50:10 +0000 (23:50 +1100)]
Run MSBuild MSVC project CI for pull requests (#419)

5 years agomac autoconf: support current and future SDKs (#470)
Phil Burk [Tue, 26 Jan 2021 23:25:10 +0000 (15:25 -0800)]
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.

5 years agoFix patest1 printf (#467)
Phil Burk [Sun, 24 Jan 2021 22:54:28 +0000 (14:54 -0800)]
Fix patest1 printf (#467)

* Fix patest1.c printf

Got changed from fprintf() accidentally.

Fixes #466

5 years agoautoconf build: add src dir src/hostapi/skeleton to fix out of tree builds."
orbea [Thu, 21 Jan 2021 02:23:43 +0000 (18:23 -0800)]
autoconf build: add src dir src/hostapi/skeleton to fix out of tree builds."

5 years agoWhitespace cleanup in test
petris [Fri, 22 Jan 2021 13:14:12 +0000 (14:14 +0100)]
Whitespace cleanup in test

5 years agoWhitespace cleanup in examples
petris [Fri, 22 Jan 2021 13:20:29 +0000 (14:20 +0100)]
Whitespace cleanup in examples

5 years agoWhitespace cleanup in qa
petris [Fri, 22 Jan 2021 13:17:52 +0000 (14:17 +0100)]
Whitespace cleanup in qa

5 years agodocs: Pa_OpenStream() fails if sampleRate unavailable (#446)
Phil Burk [Thu, 21 Jan 2021 16:17:27 +0000 (08:17 -0800)]
docs: Pa_OpenStream() fails if sampleRate unavailable (#446)

It was not clear in the previous docs.
Fixes #443

5 years agoClean up whitespace in qa/ in preparation for .editorconfig. (#418)
Ross Bencina [Thu, 21 Jan 2021 13:00:40 +0000 (00:00 +1100)]
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.

5 years agoClean up whitespace in test/ in preparation for .editorconfig. (#417)
Ross Bencina [Thu, 21 Jan 2021 12:45:10 +0000 (23:45 +1100)]
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.

5 years agoClean up whitespace in src/os/unix in preparation for .editorconfig. Convert tabs...
Ross Bencina [Thu, 21 Jan 2021 12:27:43 +0000 (23:27 +1100)]
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)

5 years agoClean up whitespace in src/os/win in preparation for .editorconfig. (#409)
Ross Bencina [Thu, 21 Jan 2021 12:23:00 +0000 (23:23 +1100)]
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.

5 years agoClean up whitespace in src/common in preparation for .editorconfig. (#408)
Ross Bencina [Thu, 21 Jan 2021 12:06:08 +0000 (23:06 +1100)]
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.

5 years agoClean up whitespace in pa_win_wmme.c in preparation for .editorconfig (#413)
Ross Bencina [Thu, 21 Jan 2021 11:46:49 +0000 (22:46 +1100)]
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

5 years agoClean up whitespace in src\hostapi\dsound in preparation for .editorconfig. Convert...
Ross Bencina [Thu, 21 Jan 2021 11:32:05 +0000 (22:32 +1100)]
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)

5 years agoClean up whitespace in examples/ in preparation for .editorconfig. Convert tabs to...
Ross Bencina [Thu, 21 Jan 2021 11:23:23 +0000 (22:23 +1100)]
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)

5 years agoClean up whitespace in pa_asio.cpp in preparation for .editorconfig. Convert tabs...
Ross Bencina [Thu, 21 Jan 2021 11:17:17 +0000 (22:17 +1100)]
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)

5 years agoIgnore the Visual Studio CMake settings file. (#422)
Etienne Dechamps [Thu, 21 Jan 2021 11:16:44 +0000 (11:16 +0000)]
Ignore the Visual Studio CMake settings file. (#422)

When using CMake, this file is written by Visual Studio to hold custom
CMake parameters.

5 years agoClean up whitespace in src/hostapi/{asihpi, jack, oss, skeleton} in preparation for...
Ross Bencina [Thu, 21 Jan 2021 10:58:54 +0000 (21:58 +1100)]
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.

5 years agoClean up whitespace in include/ in preparation for .editorconfig. (#415)
Ross Bencina [Thu, 21 Jan 2021 03:19:22 +0000 (14:19 +1100)]
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.

5 years agoalignment fixes
John Melas [Tue, 29 Dec 2020 14:51:28 +0000 (16:51 +0200)]
alignment fixes

5 years agoremove todo comments
John Melas [Tue, 29 Dec 2020 14:48:04 +0000 (16:48 +0200)]
remove todo comments

5 years agopass input size in AudioConverterFillComplexBuffer as number of packets
John Melas [Sun, 20 Dec 2020 18:00:44 +0000 (20:00 +0200)]
pass input size in AudioConverterFillComplexBuffer as number of packets

5 years agofix ringBufferIOProc
John Melas [Sun, 20 Dec 2020 12:35:24 +0000 (14:35 +0200)]
fix ringBufferIOProc

5 years agoremove support for OS X 10.4, rename functions pa_ -> PaMacCore_
John Melas [Wed, 16 Dec 2020 10:45:30 +0000 (12:45 +0200)]
remove support for OS X 10.4, rename functions pa_ -> PaMacCore_

5 years agoformatting and #ifdef comment
John Melas [Fri, 27 Nov 2020 07:09:00 +0000 (09:09 +0200)]
formatting and #ifdef comment

5 years agofix compile error
John Melas [Fri, 27 Nov 2020 07:05:47 +0000 (09:05 +0200)]
fix compile error

5 years agonew hal
John Melas [Thu, 26 Nov 2020 12:28:17 +0000 (14:28 +0200)]
new hal

5 years agofix logging warnings
John Melas [Thu, 26 Nov 2020 11:23:36 +0000 (13:23 +0200)]
fix logging warnings

5 years agoOSS: correct test for unsupported formats
Ed Maste [Tue, 19 Jan 2021 20:00:09 +0000 (15:00 -0500)]
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.

5 years agoOSS: include both /dev/dsp and /dev/dsp0
Ed Maste [Tue, 19 Jan 2021 21:09:01 +0000 (16:09 -0500)]
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.

5 years agoremove unused and undocumented fixdir.bat & fixfile.bat
Be [Wed, 13 Jan 2021 11:16:58 +0000 (05:16 -0600)]
remove unused and undocumented fixdir.bat & fixfile.bat

5 years agoremove index.html
Be [Wed, 13 Jan 2021 12:12:54 +0000 (06:12 -0600)]
remove index.html

This file does not belong in a code repository.

5 years agoMerge pull request #429 from bluecataudio/fix_wsapi_failure
Dmitry Kostjuchenko [Thu, 7 Jan 2021 18:36:10 +0000 (20:36 +0200)]
Merge pull request #429 from bluecataudio/fix_wsapi_failure

wasapi: Device list should not fail with error if no audio device found.

5 years agoFix: WASAPI should not fail with error if no device found
Blue Cat Audio [Thu, 7 Jan 2021 11:24:41 +0000 (12:24 +0100)]
Fix: WASAPI should not fail with error if no device found

5 years agoMerge pull request #421 from dechamps/mixdef
Dmitry Kostjuchenko [Sat, 2 Jan 2021 15:30:05 +0000 (17:30 +0200)]
Merge pull request #421 from dechamps/mixdef

Add missing PaWasapi_GetDeviceMixFormat cmake DLL export

5 years agoAdd missing PaWasapi_GetDeviceMixFormat cmake DLL export
Etienne Dechamps [Fri, 1 Jan 2021 15:35:13 +0000 (15:35 +0000)]
Add missing PaWasapi_GetDeviceMixFormat cmake DLL export

This omission made it impossible to use PaWasapi_GetDeviceMixFormat()
from a PortAudio DLL built using CMake.

5 years agoMerge pull request #376 from jmelas/wasapi_mismatch
Dmitry Kostjuchenko [Tue, 29 Dec 2020 15:30:48 +0000 (17:30 +0200)]
Merge pull request #376 from jmelas/wasapi_mismatch

wasapi: Fix signed/unsigned mismatch warning.

5 years agofix signed/unsigned mismatch warning
John Melas [Fri, 18 Dec 2020 14:53:35 +0000 (16:53 +0200)]
fix signed/unsigned mismatch warning

5 years agoMerge pull request #406 from bear101/startstream_block
Dmitry Kostjuchenko [Tue, 29 Dec 2020 08:46:16 +0000 (10:46 +0200)]
Merge pull request #406 from bear101/startstream_block

WASAPI: Report thread running so Pa_StartStream can return

5 years agoReport thread running so Pa_StartStream can return prior to PaStreamCallback
Bjørn Damstedt Rasmussen [Tue, 29 Dec 2020 06:31:58 +0000 (07:31 +0100)]
Report thread running so Pa_StartStream can return prior to PaStreamCallback

StartStream() calls WaitForSingleObject(stream->hThreadStart, 60*1000)
but it will not be able to return until X number of PaStreamCallback
have been performed by ProcessOutputBuffer().

The above behaviour will cause a deadlock if the user supplied
PaStreamCallback tries to access a shared lock currently held by the
function calling Pa_StartStream().

Also it's a bit weird that you start receiving PaStreamCallbacks
before Pa_StartStream() is able to complete.

5 years agoAlign slashes
MichalPetryka [Wed, 23 Dec 2020 12:06:48 +0000 (13:06 +0100)]
Align slashes

5 years agoUpdate pa_win_wmme.c
MichalPetryka [Tue, 22 Dec 2020 20:00:53 +0000 (21:00 +0100)]
Update pa_win_wmme.c

5 years agoFix ANSI in MME and DSound
petris [Tue, 22 Dec 2020 17:30:19 +0000 (18:30 +0100)]
Fix ANSI in MME and DSound

5 years agoFix uninitialized variable warnings. Improved solution for PR #377
Ross Bencina [Mon, 21 Dec 2020 07:11:12 +0000 (18:11 +1100)]
Fix uninitialized variable warnings. Improved solution for PR #377

5 years agowdmks: Reset packet->Header.OptionsFlags = 0 for each packet. Fixes issue with Focusr...
Ross Bencina [Tue, 22 Dec 2020 07:57:23 +0000 (18:57 +1100)]
wdmks: Reset packet->Header.OptionsFlags = 0 for each packet. Fixes issue with Focusrite Scarlett 2i4 (1st Gen). Fixes #310

5 years agoRename build steps for clarity.
Ross Bencina [Mon, 21 Dec 2020 06:31:34 +0000 (17:31 +1100)]
Rename build steps for clarity.

5 years agoAdd new GitHub action to build PortAudio using the MSVC project file. Fixes #368.
Ross Bencina [Mon, 21 Dec 2020 06:25:42 +0000 (17:25 +1100)]
Add new GitHub action to build PortAudio using the MSVC project file. Fixes #368.

5 years agoFix a GCC warning due to unsigned substraction
Jean-Michaël Celerier [Mon, 21 Dec 2020 18:22:16 +0000 (19:22 +0100)]
Fix a GCC warning due to unsigned substraction

Given

    unsigned int reqRate, setRate, deviation;

then

    setRate - reqRate

is also an unsigned int - the code works "by chance" as `abs` casts that to an int which overflows and is technically undefined behaviour, for instance for setRate = 44100 and reqRate = 48000.

Thus cast them to int when computing the absolute value to ensure no UB.

5 years agopaqa_devs.c: improve file comment
Phil Burk [Sat, 26 Dec 2020 16:33:26 +0000 (08:33 -0800)]
paqa_devs.c: improve file comment

5 years agopaqa_devs.c: remove some white space
Phil Burk [Sat, 26 Dec 2020 16:32:40 +0000 (08:32 -0800)]
paqa_devs.c: remove some white space

5 years agopaqa_devs: test default device
Phil Burk [Sat, 19 Dec 2020 23:59:23 +0000 (15:59 -0800)]
paqa_devs: test default device

Use sine wave instead of sawtooth because it is
easier to hear glitches.

Add some options:
    -a - Test ALL devices, otherwise just the default devices.
    -i - Test INPUT only.
    -o - Test OUTPUT only.

5 years agoreturn paInternalError from PaWasapi_UpdateDeviceList() when it is disabled
Ross Bencina [Fri, 18 Dec 2020 06:53:42 +0000 (17:53 +1100)]
return paInternalError from PaWasapi_UpdateDeviceList() when it is disabled

5 years agofix issue #321 broken MSVC build. Always define PaWasapi_UpdateDeviceList() even...
Ross Bencina [Mon, 14 Dec 2020 08:20:43 +0000 (19:20 +1100)]
fix issue #321 broken MSVC build. Always define PaWasapi_UpdateDeviceList() even when it is a no-op because it is mentioned in the .def file.

5 years agoFix compiler warnings: 'type cast': conversion from 'int' to 'HWAVEIN' of greater...
Ross Bencina [Fri, 18 Dec 2020 07:32:45 +0000 (18:32 +1100)]
Fix compiler warnings: 'type cast': conversion from 'int' to 'HWAVEIN' of greater size. See ticket #370

5 years agoMerge pull request #344 from daschuer/ChameleonPatch
Phil Burk [Fri, 18 Dec 2020 17:57:32 +0000 (09:57 -0800)]
Merge pull request #344 from daschuer/ChameleonPatch

Don't crash if alsa_snd_pcm_poll_descriptors fails

5 years agoMerge pull request #373 from jmelas/dword_thread
Phil Burk [Fri, 18 Dec 2020 17:50:36 +0000 (09:50 -0800)]
Merge pull request #373 from jmelas/dword_thread

Change PaWinUtilComInitializationResult::initializingThreadId to DWORD to match the native type of WIN32 thread id

5 years agofix non latin1 character in pa_debugprint.c
John Melas [Fri, 18 Dec 2020 09:26:33 +0000 (11:26 +0200)]
fix non latin1 character in pa_debugprint.c

5 years agouse DWORD for thread id
John Melas [Fri, 18 Dec 2020 09:48:08 +0000 (11:48 +0200)]
use DWORD for thread id

5 years agoMerge pull request #364 from MichalPetryka/patch-1
Dmitry Kostjuchenko [Fri, 18 Dec 2020 07:30:49 +0000 (09:30 +0200)]
Merge pull request #364 from MichalPetryka/patch-1

Update def files for #340

5 years agoUpdate portaudio.def
MichalPetryka [Thu, 17 Dec 2020 09:53:44 +0000 (10:53 +0100)]
Update portaudio.def

5 years agoAdd PaWasapiWinrt_PopulateDeviceList
MichalPetryka [Thu, 17 Dec 2020 08:53:16 +0000 (09:53 +0100)]
Add PaWasapiWinrt_PopulateDeviceList

5 years agoUpdate def files for #340
MichalPetryka [Tue, 15 Dec 2020 18:39:22 +0000 (19:39 +0100)]
Update def files for #340

5 years agoImprove code style
Daniel Schürmann [Mon, 14 Dec 2020 07:21:34 +0000 (08:21 +0100)]
Improve code style

5 years agoDon't crash for alsa_snd_pcm_poll_descriptors fail in another case
Daniel Schürmann [Mon, 14 Dec 2020 07:03:04 +0000 (08:03 +0100)]
Don't crash for alsa_snd_pcm_poll_descriptors fail in another case

5 years agoMerge pull request #361 from luzpaz/typos
Phil Burk [Sun, 13 Dec 2020 22:39:55 +0000 (14:39 -0800)]
Merge pull request #361 from luzpaz/typos

Fix user-facing and non-user-facing typos

5 years agoRevert typo
luzpaz [Sun, 13 Dec 2020 02:35:50 +0000 (21:35 -0500)]
Revert typo

Co-authored-by: Phil Burk <philburk@mobileer.com>
5 years agoFix user-facing and non-user-facing typos
luz paz [Fri, 11 Dec 2020 12:37:23 +0000 (07:37 -0500)]
Fix user-facing and non-user-facing typos

Found via `codespell v2.1.dev0`

5 years agoMerge pull request #362 from PortAudio/winrt
Dmitry Kostjuchenko [Fri, 11 Dec 2020 13:33:26 +0000 (15:33 +0200)]
Merge pull request #362 from PortAudio/winrt

wasapi: Fixed underruns in the Exclusive mode on UWP platform.

5 years agowasapi: Fixed underruns in the Exclusive mode on UWP platform (or when timeBeginPerio...
dmitrykos [Fri, 11 Dec 2020 13:30:08 +0000 (15:30 +0200)]
wasapi: Fixed underruns in the Exclusive mode on UWP platform (or when timeBeginPeriod does not allow to set 1 ms granularity) by assuming that system timer granularity on UWP equals to 10 msec, make sure time to sleep provided by GetNextSleepTime is aligned to the granularity of the system timer.

5 years agoFix GUID defines in pa_win_wdmks.c when compiling with clang-cl (#327)
Nemirtingas [Tue, 8 Dec 2020 06:28:56 +0000 (07:28 +0100)]
Fix GUID defines in pa_win_wdmks.c when compiling with clang-cl (#327)

Fix GUID defines in pa_win_wdmks.c when compiling with clang-cl

Co-authored-by: Nemirtingas <nanaki89@hotmail.fr>
5 years agoFixed breaking strict-aliasing rules (if compiled with GCC with -fstrict-aliasing...
Dmitry Kostjuchenko [Tue, 8 Dec 2020 06:26:54 +0000 (08:26 +0200)]
Fixed breaking strict-aliasing rules (if compiled with GCC with -fstrict-aliasing) in PaWin_InitializeWaveFormatExtensible(). (#342)

5 years agoRemove superfluid void cast
Daniel Schürmann [Fri, 27 Nov 2020 07:40:45 +0000 (08:40 +0100)]
Remove superfluid void cast

5 years agopa_mac_core_utilities: add void to empty function argument list (#355)
Ross Bencina [Thu, 26 Nov 2020 02:46:05 +0000 (13:46 +1100)]
pa_mac_core_utilities: add void to empty function argument list (#355)

Insert "void" in the argument list to turn initializeXRunListenerList and destroyXRunListenerList declarations into valid prototypes. Also update the function definitions to match. Thanks to Paul Boersma.

5 years agoAdd missing void argument, and include include pa_jack.h in pa_jack.c (#347)
Paul Boersma [Thu, 26 Nov 2020 01:39:01 +0000 (02:39 +0100)]
Add missing void argument, and include include pa_jack.h in pa_jack.c (#347)

* Update pa_jack.c

include `pa_jack.h` in `pa_jack.c`, which provides prototypes for PaJack_SetClientName() and PaJack_GetClientName()

* Update pa_unix_util.h

PaUnixThreading_Initialize() is not a prototype in C, make it PaUnixThreading_Initialize(void)

* Update pa_unix_util.c

make PaUnixThreading_Initialize definition correspond to prototype

5 years agoFix crashes on disconnected pins in wmdks topologies. (#300)
Colin McEwan [Thu, 19 Nov 2020 02:22:22 +0000 (02:22 +0000)]
Fix crashes on disconnected pins in wmdks topologies. (#300)

* Fix crashes on disconnected pins in wmdks topologies.
* Fix potential assert on disconnected physical output pin in PinNew

5 years agoDon't crash if alsa_snd_pcm_poll_descriptors fails
Daniel Schürmann [Wed, 11 Nov 2020 23:25:34 +0000 (00:25 +0100)]
Don't crash if alsa_snd_pcm_poll_descriptors fails

5 years agoMerge pull request #338 from hoolrory/ticket_218_2
Phil Burk [Thu, 29 Oct 2020 00:32:30 +0000 (17:32 -0700)]
Merge pull request #338 from hoolrory/ticket_218_2

Replace usage of deprecated component manager APIs on 10.6+

5 years agoAdd the install interface.
Nemirtingas [Tue, 13 Oct 2020 07:56:09 +0000 (09:56 +0200)]
Add the install interface.

5 years agoMerge pull request #341 from PortAudio/winrt
Dmitry Kostjuchenko [Mon, 26 Oct 2020 20:29:00 +0000 (22:29 +0200)]
Merge pull request #341 from PortAudio/winrt

wasapi: Fixed compilation with MinGW32 (original mingw32, not mingw-w64).

5 years agowasapi: Fixed compilation with MinGW (mingw32): gcc version 6.3.0 (MinGW.org GCC...
dmitrykos [Mon, 26 Oct 2020 16:25:10 +0000 (18:25 +0200)]
wasapi: Fixed compilation with MinGW (mingw32): gcc version 6.3.0 (MinGW.org GCC-6.3.0-1), include /mingw-include folder explicitly (when compiling with mingw-w64 the /mingw-include folder must not be included).

5 years agoMerge pull request #340 from PortAudio/winrt
Dmitry Kostjuchenko [Mon, 26 Oct 2020 14:49:44 +0000 (16:49 +0200)]
Merge pull request #340 from PortAudio/winrt

wasapi: Support multiple devices in the device list on Windows UWP/WiRT platform.

5 years agowasapi: Support multiple devices in the device list on Windows UWP/WinRT platform...
dmitrykos [Mon, 26 Oct 2020 14:40:25 +0000 (16:40 +0200)]
wasapi: Support multiple devices in the device list on Windows UWP/WinRT platform. All UWP/WinRT functions are now prefixed as PaWasapiWinrt_ to be clearly visible, therefore PaWasapi_SetDefaultInterfaceId() was renamed to PaWasapiWinrt_SetDefaultDeviceId(). Expanded Important notes regarding UWP/WinRT platform and how to make the fully-functional device list with the corresponding pseudo-code example for easier understanding of the functionality.

5 years agoReplace usage of deprecated component manager APIs on 10.6+
Hool, Rory [Thu, 22 Oct 2020 17:53:56 +0000 (13:53 -0400)]
Replace usage of deprecated component manager APIs on 10.6+

These APIs are deprecated in 10.8+ and are disabled on 11.0(10.16)+ https://developer.apple.com/documentation/coreservices/carbon_core/component_manager?language=objc
> "This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 10.16 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h."

5 years agoAdd a GitHub action for building with CMake on MSVC.
Etienne Dechamps [Sun, 18 Oct 2020 11:06:03 +0000 (13:06 +0200)]
Add a GitHub action for building with CMake on MSVC.

5 years agoAdd a GitHub action for building with CMake.
Etienne Dechamps [Sun, 18 Oct 2020 08:48:57 +0000 (10:48 +0200)]
Add a GitHub action for building with CMake.

5 years agoMerge pull request #312 from PortAudio/alsa_ignore_all_plugins
Dmitry Kostjuchenko [Thu, 22 Oct 2020 07:34:51 +0000 (10:34 +0300)]
Merge pull request #312 from PortAudio/alsa_ignore_all_plugins

alsa: Option to ignore all ALSA plugin devices.

5 years agoAdd support for enabling dynamic alsa loading in CMakeLists.txt
Jean-Michaël Celerier [Tue, 6 Oct 2020 21:07:15 +0000 (23:07 +0200)]
Add support for enabling dynamic alsa loading in CMakeLists.txt

It had been added to the source code a long time ago, but was not integrated to the
build system.

5 years agoAdd a GitHub action for cross-compiling to MinGW via CMake.
Etienne Dechamps [Sun, 18 Oct 2020 09:09:40 +0000 (11:09 +0200)]
Add a GitHub action for cross-compiling to MinGW via CMake.

5 years agoIgnore files generated by Visual Studio 2017/2019.
Etienne Dechamps [Sun, 18 Oct 2020 08:42:55 +0000 (10:42 +0200)]
Ignore files generated by Visual Studio 2017/2019.

5 years agoalsa: Introduce possibility to ignore all ALSA plugin devices by setting the environm...
dmitrykos [Thu, 26 Mar 2020 18:50:52 +0000 (20:50 +0200)]
alsa: Introduce possibility to ignore all ALSA plugin devices by setting the environment variable PA_ALSA_IGNORE_ALL_PLUGINS to non-0. Fixed logic of guarding assertion in BuildDeviceList() when only one or none PCM device is available (may occur if PA_ALSA_IGNORE_ALL_PLUGINS is set to non-0 or when device has no any audio device available, including plugin devices).