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
Dmitry Kostjuchenko
93df249256
Merge pull request #429 from bluecataudio/fix_wsapi_failure
...
wasapi: Device list should not fail with error if no audio device found.
2021-01-07 20:36:10 +02:00
Blue Cat Audio
3532e56784
Fix: WASAPI should not fail with error if no device found
2021-01-07 12:52:09 +01:00
Dmitry Kostjuchenko
00df77e6b1
Merge pull request #421 from dechamps/mixdef
...
Add missing PaWasapi_GetDeviceMixFormat cmake DLL export
2021-01-02 17:30:05 +02:00
Etienne Dechamps
5b75613f06
Add missing PaWasapi_GetDeviceMixFormat cmake DLL export
...
This omission made it impossible to use PaWasapi_GetDeviceMixFormat()
from a PortAudio DLL built using CMake.
2021-01-01 15:42:20 +00:00
Dmitry Kostjuchenko
d6fc190012
Merge pull request #376 from jmelas/wasapi_mismatch
...
wasapi: Fix signed/unsigned mismatch warning.
2020-12-29 17:30:48 +02:00
John Melas
159b415af0
fix signed/unsigned mismatch warning
2020-12-29 17:22:57 +02:00
Dmitry Kostjuchenko
a4cbc426d2
Merge pull request #406 from bear101/startstream_block
...
WASAPI: Report thread running so Pa_StartStream can return
2020-12-29 10:46:16 +02:00
Bjørn Damstedt Rasmussen
2d8c7eb0f7
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.
2020-12-29 09:27:38 +01:00
MichalPetryka
f4a9023400
Align slashes
2020-12-28 08:22:23 -08:00
MichalPetryka
6f90db9612
Update pa_win_wmme.c
2020-12-28 08:22:23 -08:00
petris
17b895bb8f
Fix ANSI in MME and DSound
2020-12-28 08:22:23 -08:00
Ross Bencina
7ffe61ea26
Fix uninitialized variable warnings. Improved solution for PR #377
2020-12-28 23:19:59 +11:00
Ross Bencina
6a676d3ecb
wdmks: Reset packet->Header.OptionsFlags = 0 for each packet. Fixes issue with Focusrite Scarlett 2i4 (1st Gen). Fixes #310
2020-12-27 23:04:42 +11:00
Ross Bencina
fb9b6463eb
Rename build steps for clarity.
2020-12-27 23:03:46 +11:00
Ross Bencina
cdd1cf69fe
Add new GitHub action to build PortAudio using the MSVC project file. Fixes #368 .
2020-12-27 23:03:46 +11:00
Jean-Michaël Celerier
a7bda88e6b
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.
2020-12-26 15:41:53 -08:00
Phil Burk
63bbb63343
paqa_devs.c: improve file comment
2020-12-26 08:47:56 -08:00
Phil Burk
d68a78d30b
paqa_devs.c: remove some white space
2020-12-26 08:47:56 -08:00
Phil Burk
5f869e787e
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.
2020-12-26 08:47:56 -08:00
Ross Bencina
1a5c410f7f
return paInternalError from PaWasapi_UpdateDeviceList() when it is disabled
2020-12-21 16:37:38 +11:00
Ross Bencina
4ce9f0d0a8
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.
2020-12-21 16:37:38 +11:00
Ross Bencina
609b998334
Fix compiler warnings: 'type cast': conversion from 'int' to 'HWAVEIN' of greater size. See ticket #370
2020-12-21 16:35:52 +11:00
Phil Burk
cff8571659
Merge pull request #344 from daschuer/ChameleonPatch
...
Don't crash if alsa_snd_pcm_poll_descriptors fails
2020-12-18 09:57:32 -08:00
Phil Burk
0da139d46d
Merge pull request #373 from jmelas/dword_thread
...
Change PaWinUtilComInitializationResult::initializingThreadId to DWORD to match the native type of WIN32 thread id
2020-12-18 09:50:36 -08:00
John Melas
7503d9f239
fix non latin1 character in pa_debugprint.c
2020-12-18 22:58:22 +11:00
John Melas
1c54d71e2a
use DWORD for thread id
2020-12-18 11:50:44 +02:00
Dmitry Kostjuchenko
3c6337b268
Merge pull request #364 from MichalPetryka/patch-1
...
Update def files for #340
2020-12-18 09:30:49 +02:00
MichalPetryka
11a3e23917
Update portaudio.def
2020-12-17 10:53:44 +01:00
MichalPetryka
b900df6d9d
Add PaWasapiWinrt_PopulateDeviceList
2020-12-17 09:53:16 +01:00
MichalPetryka
e5cb1a620f
Update def files for #340
2020-12-15 19:39:22 +01:00
Daniel Schürmann
9ddb047ab1
Improve code style
2020-12-14 08:22:54 +01:00
Daniel Schürmann
8f63b51808
Don't crash for alsa_snd_pcm_poll_descriptors fail in another case
2020-12-14 08:03:04 +01:00
Phil Burk
e76f8fdd40
Merge pull request #361 from luzpaz/typos
...
Fix user-facing and non-user-facing typos
2020-12-13 14:39:55 -08:00
luzpaz
0588b306c4
Revert typo
...
Co-authored-by: Phil Burk <philburk@mobileer.com>
2020-12-12 21:35:50 -05:00
luz paz
e1c3e59ee8
Fix user-facing and non-user-facing typos
...
Found via `codespell v2.1.dev0`
2020-12-11 20:24:05 -05:00
Dmitry Kostjuchenko
37a97ac470
Merge pull request #362 from PortAudio/winrt
...
wasapi: Fixed underruns in the Exclusive mode on UWP platform.
2020-12-11 15:33:26 +02:00