]> Repos - portaudio/log
portaudio
4 years agoCMake rewrite using modern CMake best practices
Be [Tue, 9 Feb 2021 17:01:57 +0000 (11:01 -0600)]
CMake rewrite using modern CMake best practices

Rewrite CMakeLists.txt using CMake targets and modules instead
of building up source files in variables.

Change pkgconfig file generated by CMake to use
Requires.private and Libs.private fields as recommended by the
pkgconfig maintainer:
https://people.freedesktop.org/~dbn/pkg-config-guide.html#faq

Refactor to use standard CMake variables, notably
BUILD_SHARED_LIBS instead of always building both dynamic and
static libraries. Also use CMAKE_FRAMEWORK for building as a
macOS framework.

Remove superfluous PA_ prefixes from option names.

When building with ASIO, automatically download ASIO SDK from
Steinberg if it is not found. The path to the SDK can be
manually specified with ASIO_SDK_ZIP_PATH to facilitate caching
on CI.

Add support for building JACK host API with MSVC and MinGW.

Add support for OSS (off by default).

4 years agoCMake: move MinGW toolchain file to new cmake/toolchains directory
Be [Fri, 7 May 2021 03:06:22 +0000 (22:06 -0500)]
CMake: move MinGW toolchain file to new cmake/toolchains directory

4 years agorename cmake_support directory to cmake
Be [Mon, 11 Jan 2021 18:18:44 +0000 (12:18 -0600)]
rename cmake_support directory to cmake

4 years agoMerge pull request #619 from PortAudio/winrt
Dmitry Kostjuchenko [Fri, 6 Aug 2021 06:56:26 +0000 (09:56 +0300)]
Merge pull request #619 from PortAudio/winrt

wasapi: Improved reliability of the supported platform check.

4 years agowasapi: Check for the supported Windows version explicitly in PaWasapi_Initialize... winrt
dmitrykos [Thu, 5 Aug 2021 17:23:39 +0000 (20:23 +0300)]
wasapi: Check for the supported Windows version explicitly in PaWasapi_Initialize() and avoid relying on existence on avrt.dll for detecting the compatible platform (user could provide avrt.dll stub that will break initialization of the library if OS version does not support WASAPI backend).

5 years agoUnify all stringizing macros to new PA_STRINGIZE macro in pa_util.h (#605)
John Melas [Thu, 1 Jul 2021 00:19:21 +0000 (03:19 +0300)]
Unify all stringizing macros to new PA_STRINGIZE macro in pa_util.h (#605)

5 years agopa_win_wmme.c: replace LPCTSTR with LPCWSTR (#597)
John Melas [Wed, 23 Jun 2021 00:15:57 +0000 (03:15 +0300)]
pa_win_wmme.c: replace LPCTSTR with LPCWSTR (#597)

5 years agoHave PaUtil_GetTime() use monotonic time on Unix (#559)
Trent Piepho [Wed, 9 Jun 2021 00:52:32 +0000 (17:52 -0700)]
Have PaUtil_GetTime() use monotonic time on Unix (#559)

The currently used clock, CLOCK_REALTIME, will have discontinuous jumps, forward
and backward, when the system clock is adjusted.  This is bad for synchronizing
audio.  CLOCK_MONOTONIC does not have jumps, and never moves backward, but does
have the continuous adjustments done by NTP to increase clock accuracy.

Since kernel 2.6.25 ALSA has use CLOCK_MONOTONIC by default for timestamps
(commit b751eef1 from Dec 13 2007).  This change means the timestamps provided
in the PA callbacks can be compared to PaUtil_GetTime(), which currently does
not work.

The function used on MacOS, mach_absolute_time(), behaves like CLOCK_MONOTONIC.

If the system does not have CLOCK_MONOTONIC, fallback to CLOCK_REALTIME, which
is what alsa-lib does for such systems.  Which at this point would need to be
very old.

* Use clock monotonic for condition variable

This is necessary to match PaUtil_GetTime() also using the monotonic
clock.  Otherwise the wait time, derived from that function, will be
completely incorrect.

This will also fix an obscure flaw if the system clock is adjust while
waiting for the stream to open, it might not wait at all and fail or
wait (effectively) forever instead of timing out, depend on the
adjustment direction.

5 years agoUnify windows error processing into a single PaWinUtil_SetLastSystemErrorInfo functio...
John Melas [Wed, 9 Jun 2021 00:43:40 +0000 (03:43 +0300)]
Unify windows error processing into a single PaWinUtil_SetLastSystemErrorInfo function (#495)

5 years agoalsa: init stream variable in pa_linux_alsa.c (#584)
Phil Burk [Wed, 9 Jun 2021 00:19:44 +0000 (17:19 -0700)]
alsa: init stream variable in pa_linux_alsa.c (#584)

Prevent compiler warnings.

Alternative to #567

5 years agotest: time out in patest_sine_time.c (#585)
Phil Burk [Wed, 9 Jun 2021 00:19:14 +0000 (17:19 -0700)]
test: time out in patest_sine_time.c (#585)

On ALSA the StreamTime was not advancing so the while()
loop never exited. Now it will time out if it plays for much
longer than expected without the stream time changing.

Also measure timestamp latency from callback info.

5 years agopa_mac_core.c: init streamLatency and others (#591)
Phil Burk [Wed, 9 Jun 2021 00:06:48 +0000 (17:06 -0700)]
pa_mac_core.c: init streamLatency and others (#591)

Prevent compiler warnings.

5 years agoAlsa: Use hires timestamps (#560)
Trent Piepho [Thu, 3 Jun 2021 01:03:42 +0000 (18:03 -0700)]
Alsa: Use hires timestamps (#560)

ALSA added nanosecond timestamps in library version 0.9.1.  Use these
instead of microsecond timestamps for reporting audio timestamps as well
as underrun/overrun times.

alsa-lib version 0.9.1 was released on Mar 11 2003.  I had fallback code
to use non-hires timestamps, but after 18 years it didn't seem
necessary, and I removed it from this commit.

5 years agoAdd documentation indicating that Pa_ReadStream, Pa_WriteStream, Pa_GetStreamReadAvai...
Ross Bencina [Thu, 20 May 2021 02:06:14 +0000 (12:06 +1000)]
Add documentation indicating that Pa_ReadStream, Pa_WriteStream, Pa_GetStreamReadAvailable and Pa_GetStreamWriteAvailable are only valid while the stream is running (between calls to Pa_StartStream and Pa_StopStream.)

5 years agoAdded Pa_GetVersionInfo to portaudio.def (#574)
Mirko Rajkovaca [Thu, 27 May 2021 00:07:27 +0000 (02:07 +0200)]
Added Pa_GetVersionInfo to portaudio.def (#574)

* - added Pa_GetVersionInfo to portaudio.def

* - added Pa_GetVersionInfo to `cmake_support/template_portaudio.def`

Co-authored-by: Mirko Rajkovaca <mirko@mrcode.dev>
5 years agoalsa: Increase snprintf buffer size to fix warning (#566)
MonkeybreadSoftware [Thu, 13 May 2021 00:36:10 +0000 (02:36 +0200)]
alsa: Increase snprintf buffer size to fix warning (#566)

Avoid compiler warning suggesting the buffer is too small:

../PortAudioLib/portaudio/src/hostapi/alsa/pa_linux_alsa.c: In function 'BuildDeviceList.constprop':
../PortAudioLib/portaudio/src/hostapi/alsa/pa_linux_alsa.c:1304:45: warning: '%s' directive output may be truncated writing up to 49 bytes into a region of size between 46 and 50 [-Wformat-truncation=]
             snprintf( buf, sizeof (buf), "%s%s,%d", hwPrefix, alsaCardName, devIdx );
                                             ^~                ~~~~~~~~~~~~
../PortAudioLib/portaudio/src/hostapi/alsa/pa_linux_alsa.c:1304:42: note: directive argument in the range [0, 2147483647]
             snprintf( buf, sizeof (buf), "%s%s,%d", hwPrefix, alsaCardName, devIdx );
                                          ^~~~~~~~~
../PortAudioLib/portaudio/src/hostapi/alsa/pa_linux_alsa.c:1304:13: note: 'snprintf' output between 3 and 65 bytes into a destination of size 50
             snprintf( buf, sizeof (buf), "%s%s,%d", hwPrefix, alsaCardName, devIdx );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

5 years agoMME: fix comparison of IO buffer sizes in CalculateBufferSettings() (#571)
Be [Thu, 13 May 2021 00:17:10 +0000 (19:17 -0500)]
MME: fix comparison of IO buffer sizes in CalculateBufferSettings() (#571)

Pull in fix from Audacity: https://bugzilla.audacityteam.org/show_bug.cgi?id=1969

The problem was some kind of typo, comparing pointers instead of the values of pointers.

5 years agoMerge pull request #552 from PortAudio/winrt
Dmitry Kostjuchenko [Thu, 29 Apr 2021 06:27:50 +0000 (09:27 +0300)]
Merge pull request #552 from PortAudio/winrt

wasapi: Fixed compilation with MinGW (W64)

5 years ago[macOS] drop support for 10.5 (#511)
John Melas [Thu, 29 Apr 2021 00:38:18 +0000 (03:38 +0300)]
[macOS] drop support for 10.5 (#511)

* drop support for 10.5

* more documentation fixes

Co-authored-by: John Melas <john@jmelas.gr>
5 years agoremove deprecated pablio (#437)
Be [Thu, 29 Apr 2021 00:35:03 +0000 (19:35 -0500)]
remove deprecated pablio (#437)

This is deprecated code from 1999.

5 years agoWhitespace cleanup in Java and C++ bindings#458)
MichalPetryka [Thu, 29 Apr 2021 00:23:52 +0000 (02:23 +0200)]
Whitespace cleanup in Java and C++ bindings#458)

5 years agoCMake: clean up including headers for examples
Be [Fri, 22 Jan 2021 23:14:36 +0000 (17:14 -0600)]
CMake: clean up including headers for examples

5 years agoCMake: build qa executables
Be [Fri, 22 Jan 2021 23:17:19 +0000 (17:17 -0600)]
CMake: build qa executables

5 years agoCMake: build all tests
Be [Fri, 22 Jan 2021 23:14:20 +0000 (17:14 -0600)]
CMake: build all tests

5 years agoGH Actions: add separate workflow for CMake testing every OS
Be [Mon, 11 Jan 2021 18:31:19 +0000 (12:31 -0600)]
GH Actions: add separate workflow for CMake testing every OS

5 years agoCMake: bump minimum version to 3.0.0 to fix deprecation warning
Be [Wed, 13 Jan 2021 08:49:08 +0000 (02:49 -0600)]
CMake: bump minimum version to 3.0.0 to fix deprecation warning

5 years agopaqa_devs.c: define _USE_MATH_DEFINES (#554)
Phil Burk [Sat, 17 Apr 2021 20:00:18 +0000 (13:00 -0700)]
paqa_devs.c: define _USE_MATH_DEFINES (#554)

before including math.h

Fixes #551

5 years agopatest_unplug.c: change int32_t to int (#553)
Phil Burk [Sat, 17 Apr 2021 19:56:16 +0000 (12:56 -0700)]
patest_unplug.c: change int32_t to int (#553)

To prevent compiler errors and to avoid controversy over
stdint.h vs inttypes.h.

Fixes #550

5 years agowasapi: Fixed compilation with MinGW (W64) when targeting 32-bit platform
dmitrykos [Thu, 15 Apr 2021 08:39:02 +0000 (11:39 +0300)]
wasapi: Fixed compilation with MinGW (W64) when targeting 32-bit platform

5 years agofix patest_converters.c argc argv order (#544)
Phil Burk [Mon, 12 Apr 2021 13:29:03 +0000 (06:29 -0700)]
fix patest_converters.c argc argv order (#544)

They were reversed.
Also added void casts to prevent unused parameter warnings.

5 years agoImprove JACK regex pattern escape code (see ticket #534). Improves previously merged... v19.7.0 v19.7.0-RC2
Ross Bencina [Thu, 1 Apr 2021 00:17:30 +0000 (11:17 +1100)]
Improve JACK regex pattern escape code (see ticket #534). Improves previously merged PR #405 master commit eec7bb7 by performing string conversion directly in to the target buffer, thus avoiding one allocation and one strncpy per client/device name. (#536)

5 years agoJACK PipeWire fixes (escape regex chars) (#504)
Be [Fri, 19 Mar 2021 17:51:31 +0000 (12:51 -0500)]
JACK PipeWire fixes (escape regex chars) (#504)

This patch fixes a problem caused by special regex characters
appearing in the device names when using the Jack interface to PipeWire.

It is uncommon for JACK ports to have any characters that need to
be escaped in a regex. jackd simply calls the audio interface
"system". However PipeWire uses the device name from ALSA for the
JACK port names. If this contains any special regex characters,
BuildDeviceList would find the device but determine it has 0
input channels and 0 output channels. In my case, I have an RME
Babyface Pro which puts its serial number in parentheses:

$ aplay -l
card 0: Pro70785713 [Babyface Pro (70785713)], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

5 years agoBump version to 19.7.0
Phil Burk [Sun, 24 Jan 2021 20:10:04 +0000 (12:10 -0800)]
Bump version to 19.7.0

5 years agoconfigure: better test for Mac OS arch
Phil Burk [Thu, 25 Feb 2021 02:09:57 +0000 (18:09 -0800)]
configure: better test for Mac OS arch

Use AC_COMPILE_IFELSE because AC_TRY_COMPILE is deprecated.
Include cdefs.h because it has checks for architcture.

5 years agoWASAPI final whitespace fix
petris [Thu, 18 Feb 2021 11:40:26 +0000 (12:40 +0100)]
WASAPI final whitespace fix

5 years agoAdd .editorconfig (#394)
MichalPetryka [Thu, 18 Feb 2021 01:49:18 +0000 (02:49 +0100)]
Add .editorconfig (#394)

5 years agoClean up whitespace in src/hostapi/coreaudio in preparation for .editorconfig. (...
Ross Bencina [Thu, 18 Feb 2021 01:11:14 +0000 (12:11 +1100)]
Clean up whitespace in src/hostapi/coreaudio in preparation for .editorconfig. (#502)

* Clean up whitespace in src/hostapi/coreaudio in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure only one EOL at EOF.

5 years agoMerge pull request #510 from alienpenguin/fix-vs2010-compilation
Dmitry Kostjuchenko [Wed, 17 Feb 2021 07:13:45 +0000 (09:13 +0200)]
Merge pull request #510 from alienpenguin/fix-vs2010-compilation

wasapi: Fix compilation for VS2010.

5 years agofixed VS2010 compilation
Francesco Lamonica [Tue, 16 Feb 2021 21:11:01 +0000 (22:11 +0100)]
fixed VS2010 compilation

5 years agoMerge pull request #509 from PortAudio/winrt
Dmitry Kostjuchenko [Tue, 16 Feb 2021 10:54:24 +0000 (12:54 +0200)]
Merge pull request #509 from PortAudio/winrt

wasapi: Fixed compilation for UWP platform, minor cleanup and refactoring.

5 years agowasapi: Fixed compilation for UWP platform, minor cleanup and refactoring.
dmitrykos [Tue, 16 Feb 2021 10:43:58 +0000 (12:43 +0200)]
wasapi: Fixed compilation for UWP platform, minor cleanup and refactoring.

5 years agoMerge pull request #508 from PortAudio/winrt
Dmitry Kostjuchenko [Tue, 16 Feb 2021 10:34:26 +0000 (12:34 +0200)]
Merge pull request #508 from PortAudio/winrt

wasapi: Fixed glitchy audio in case of Exclusive polling mode and 24-bit packed format.

5 years agowasapi: Fixed glitchy audio in case of Exclusive mode, 24-bit packed format and USB...
dmitrykos [Tue, 16 Feb 2021 10:15:00 +0000 (12:15 +0200)]
wasapi: Fixed glitchy audio in case of Exclusive mode, 24-bit packed format and USB DAC (other audio devices using the same audio format could be affected too).

5 years agocoreaudio: remove pa_mac_core_old.c
Phil Burk [Fri, 12 Feb 2021 16:00:25 +0000 (08:00 -0800)]
coreaudio: remove pa_mac_core_old.c

It has not been used for years.

Fixes #493

5 years agoCleanup newlines at EOF in oss (#491)
MichalPetryka [Thu, 11 Feb 2021 03:02:46 +0000 (04:02 +0100)]
Cleanup newlines at EOF in oss (#491)

5 years agoCleanup newlines at EOF in dsound (#490)
MichalPetryka [Thu, 11 Feb 2021 03:02:22 +0000 (04:02 +0100)]
Cleanup newlines at EOF in dsound (#490)

5 years agoconfigure/make: export PaWasapi_* and PaWasapiWinrt_* symbols (#500)
Peter Ross [Thu, 11 Feb 2021 01:37:23 +0000 (12:37 +1100)]
configure/make: export PaWasapi_* and PaWasapiWinrt_* symbols (#500)

5 years agomacos: consider major version 11
Phil Burk [Fri, 5 Feb 2021 18:23:48 +0000 (10:23 -0800)]
macos: consider major version 11

Change version logic to allow for major 11 or later.

Partial fix for #492

5 years agoMerge pull request #496 from rouseabout/master
Dmitry Kostjuchenko [Tue, 9 Feb 2021 21:39:33 +0000 (23:39 +0200)]
Merge pull request #496 from rouseabout/master

wasapi: add PaWasapi_GetIMMDevice function

5 years agoWASAPI: Add PaWaspi_GetIMMDevice function
Peter Ross [Tue, 9 Feb 2021 03:55:41 +0000 (14:55 +1100)]
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

5 years agoMerge pull request #499 from rouseabout/consistent-export-symbol-numbers
Dmitry Kostjuchenko [Tue, 9 Feb 2021 21:03:29 +0000 (23:03 +0200)]
Merge pull request #499 from rouseabout/consistent-export-symbol-numbers

cmake_support/template_portaudio.def: make symbol numbers consistent …

5 years agocmake_support/template_portaudio.def: make symbol numbers consistent with build/msvc...
Peter Ross [Tue, 9 Feb 2021 20:26:20 +0000 (07:26 +1100)]
cmake_support/template_portaudio.def: make symbol numbers consistent with build/msvc/portaudio.def

5 years agobuild: Fix builds with parallel make.
orbea [Thu, 21 Jan 2021 05:46:12 +0000 (21:46 -0800)]
build: Fix builds with parallel make.

5 years agoreplace Carbon with CoreFoundation and CoreServices
John Melas [Mon, 21 Dec 2020 10:14:19 +0000 (12:14 +0200)]
replace Carbon with CoreFoundation and CoreServices

5 years agoOSS: support 32-bit signed format AFMT_S32_NE (#462)
Ed Maste [Thu, 4 Feb 2021 02:11:03 +0000 (21:11 -0500)]
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`.

5 years agoconfigure: add arm64 for Mac M1
Phil Burk [Fri, 29 Jan 2021 20:34:13 +0000 (12:34 -0800)]
configure: add arm64 for Mac M1

Add additional architecture to builds.

Fixes #445

5 years agoconfigure: add INCLUDES for mingw build
Phil Burk [Fri, 29 Jan 2021 20:15:15 +0000 (12:15 -0800)]
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

5 years agoCleanup newlines at EOF in skeleton (#480)
MichalPetryka [Thu, 4 Feb 2021 01:20:11 +0000 (02:20 +0100)]
Cleanup newlines at EOF in skeleton (#480)

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.